InputSource

Encapsulates input information for a XMLReader.

  • Sets the input stream as a stream of bytes.

    get/setByteStream( InputStream byteStream)

    Note

    Uses first 3 bytes and xml-declaration in document to figure out Encoding.
  • Sets the input stream as a stream of characters.

    get/setCharacterStream( Reader characterStream)

    Note

    Assumes the Encoding is handled by the Reader.
  • Explicitly sets the encoding information.

    get/setEncoding( String encoding)

    Note

    Has no effect if a character stream is used.
  • Sets the system-id URI used to open a byte-stream if no byte-stream or character streams have been provided.

    get/setSystemId( String systemId)

    Note

    The XMLReader uses this value to resolve relative URIs
  • Sets the public-id information.

    get/setPublicId( String publicId)

    Note

    Will be included in the Locator if provided (informational only).