Added in API level 8

TransformerHandler

interface TransformerHandler : ContentHandler, DTDHandler, LexicalHandler
javax.xml.transform.sax.TransformerHandler

A TransformerHandler listens for SAX ContentHandler parse events and transforms them to a Result.

Summary

Public methods
abstract String!

Get the base ID (URI or system ID) from where relative URLs will be resolved.

abstract Transformer!

Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

abstract Unit
setResult(result: Result!)

Set the Result associated with this TransformerHandler to be used for the transformation.

abstract Unit
setSystemId(systemID: String!)

Set the base ID (URI or system ID) from where relative URLs will be resolved.

Inherited functions

Public methods

getSystemId

Added in API level 8
abstract fun getSystemId(): String!

Get the base ID (URI or system ID) from where relative URLs will be resolved.

Return
String! The systemID that was set with setSystemId.

getTransformer

Added in API level 8
abstract fun getTransformer(): Transformer!

Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

Return
Transformer! Transformer associated with this TransformerHandler.

setResult

Added in API level 8
abstract fun setResult(result: Result!): Unit

Set the Result associated with this TransformerHandler to be used for the transformation.

Parameters
result Result!: A Result instance, should not be null.
Exceptions
java.lang.IllegalArgumentException if result is invalid for some reason.

setSystemId

Added in API level 8
abstract fun setSystemId(systemID: String!): Unit

Set the base ID (URI or system ID) from where relative URLs will be resolved.

Parameters
systemID String!: Base URI for the source tree.