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 |
Inherited constants | |
---|---|
Public constructors | |
---|---|
Zero-argument default constructor. |
|
SAXResult(handler: ContentHandler!) Create a SAXResult that targets a SAX2 |
Public methods | |
---|---|
open ContentHandler! |
Get the |
open LexicalHandler! |
Get a SAX2 |
open String! |
Get the system identifier that was set with setSystemId. |
open Unit |
setHandler(handler: ContentHandler!) Set the target to be a SAX2 |
open Unit |
setLexicalHandler(handler: LexicalHandler!) Set the SAX2 |
open Unit |
setSystemId(systemId: String!) Method setSystemId Set the systemID that may be used in association with the |
Constants
FEATURE
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
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
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
open fun getLexicalHandler(): LexicalHandler!
Get a SAX2 org.xml.sax.ext.LexicalHandler
for the output.
Return | |
---|---|
LexicalHandler! |
A LexicalHandler , or null. |
getSystemId
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
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
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
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. |