StAXReader

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


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)