code: public void build(InputStream inputStream, boolean treatWarningsAsError)
    throws IOException, ParseException {
      build(new InputSource(inputStream), treatWarningsAsError);
    }
docs: Builds and internalizes this database from a given input stream
  containing an XML document.
  <p>
  This method can be called repeatedly on the same instance, but the
  database will be built from scratch each time.
  <p>
  The registered database listeners will <b>not</b> be notified
  during this method.
  @param inputStream the input stream to read from
  document
  @param treatWarningsAsError if true, warnings during parsing will
  trigger a <code>ParseException</code>. If false, no exception will
  be thrown if the parser reports a warning. In the latter case, the
  warnings can be obtained using the <code>getParseWarnings()</code>
  method.
  @throws IOException if any IO errors occur
  @throws ParseException if any parse errors occur