Added in API level 8

SAXResult

open class SAXResult : Result
kotlin.Any
   ↳ javax.xml.transform.sax.SAXResult

Acts as an holder for a transformation Result.

Summary

Constants
static String

If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the Transformer supports Result output of this type.

Inherited constants
Public constructors

Zero-argument default constructor.

Create a SAXResult that targets a SAX2 org.xml.sax.ContentHandler.

Public methods
open ContentHandler!

Get the org.xml.sax.ContentHandler that is the Result.

open LexicalHandler!

Get a SAX2 org.xml.sax.ext.LexicalHandler for the output.

open String!

Get the system identifier that was set with setSystemId.

open Unit

Set the target to be a SAX2 org.xml.sax.ContentHandler.

open Unit

Set the SAX2 org.xml.sax.ext.LexicalHandler for the output.

open Unit
setSystemId(systemId: String!)

Method setSystemId Set the systemID that may be used in association with the org.xml.sax.ContentHandler.

Constants

FEATURE

Added in API level 8
static val FEATURE: String

If javax.xml.transform.TransformerFactory#getFeature returns true when passed this value as an argument, the Transformer supports Result output of this type.

Value: "http://javax.xml.transform.sax.SAXResult/feature"

Public constructors

SAXResult

Added in API level 8
SAXResult()

Zero-argument default constructor.

SAXResult

Added in API level 8
SAXResult(handler: ContentHandler!)

Create a SAXResult that targets a SAX2 org.xml.sax.ContentHandler.

Parameters
handler ContentHandler!: Must be a non-null ContentHandler reference.

Public methods

getHandler

Added in API level 8
open fun getHandler(): ContentHandler!

Get the org.xml.sax.ContentHandler that is the Result.

Return
ContentHandler! The ContentHandler that is to be transformation output.

getLexicalHandler

Added in API level 8
open fun getLexicalHandler(): LexicalHandler!

Get a SAX2 org.xml.sax.ext.LexicalHandler for the output.

Return
LexicalHandler! A LexicalHandler, or null.

getSystemId

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

Get the system identifier that was set with setSystemId.

Return
String! The system identifier that was set with setSystemId, or null if setSystemId was not called.

setHandler

Added in API level 8
open fun setHandler(handler: ContentHandler!): Unit

Set the target to be a SAX2 org.xml.sax.ContentHandler.

Parameters
handler ContentHandler!: Must be a non-null ContentHandler reference.

setLexicalHandler

Added in API level 8
open fun setLexicalHandler(handler: LexicalHandler!): Unit

Set the SAX2 org.xml.sax.ext.LexicalHandler for the output.

This is needed to handle XML comments and the like. If the lexical handler is not set, an attempt should be made by the transformer to cast the org.xml.sax.ContentHandler to a LexicalHandler.

Parameters
handler LexicalHandler!: A non-null LexicalHandler for handling lexical parse events.

setSystemId

Added in API level 8
open fun setSystemId(systemId: String!): Unit

Method setSystemId Set the systemID that may be used in association with the org.xml.sax.ContentHandler.

Parameters
systemId String!: The system identifier as a URI string.