Exemplo n.º 1
0
 /**
  * Sets the input source for the document to parse.
  *
  * @param inputSource The document's input source.
  * @exception XMLConfigurationException Thrown if there is a configuration error when initializing
  *     the parser.
  * @exception IOException Thrown on I/O error.
  * @see #parse(boolean)
  */
 public void setInputSource(XMLInputSource inputSource)
     throws XMLConfigurationException, IOException {
   reset();
   fCloseStream = inputSource.getByteStream() == null && inputSource.getCharacterStream() == null;
   fDocumentScanner.setInputSource(inputSource);
 } // setInputSource(XMLInputSource)