InputSource

constructor()

Zero-argument default constructor.

See also

.setEncoding


constructor(systemId: String?)

Create a new input source with a system identifier.

Applications may use setPublicId to include a public identifier as well, or setEncoding to specify the character encoding, if known.

If the system identifier is a URL, it must be fully resolved (it may not be a relative URL).

Parameters

systemId

The system identifier (URI).

See also

.setCharacterStream


constructor(byteStream: InputStream?)

Create a new input source with a byte stream.

Application writers should use setSystemId() to provide a base for resolving relative URIs, may use setPublicId to include a public identifier, and may use setEncoding to specify the object's character encoding.

Parameters

byteStream

The raw byte stream containing the document.

See also

.setCharacterStream


constructor(characterStream: Reader?)

Create a new input source with a character stream.

Application writers should use setSystemId() to provide a base for resolving relative URIs, and may use setPublicId to include a public identifier.

The character stream shall not include a byte order mark.

Parameters

characterStream

the character stream

See also

.setCharacterStream