StAXReader

constructor(delegate: XMLStreamReader)(source)

Create a new reader that wraps the given XMLStreamReader.

Parameters

delegate

The stream reader to wrap


constructor(reader: Reader, expandEntities: Boolean = false)(source)

Shortcut constructor that creates an XMLStreamReader for the reader.

Parameters

reader

The reader to read from.

expandEntities

Influences whether the XMLStreamReader will expand entities


constructor(inputStream: InputStream, encoding: String? = null, expandEntities: Boolean = false)(source)

Create a new reader.

Parameters

inputStream

The bytestream to read from

encoding

The encoding to use, or null to use autodetection (also using the encoding attribute in the document)

expandEntities

Influences whether the XMLStreamReader will expand entities