java.lang.Object | +--javax.xml.transform.sax.SAXResult
Acts as an holder for a transformation Result.
FEATURE If TransformerFactory.getFeature(java.lang.String) returns true when passed this value as an argument, the Transformer supports Result output of this type. |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING,PI_ENABLE_OUTPUT_ESCAPING |
SAXResult() Zero-argument default constructor. | |
SAXResult(ContentHandler handler) Create a SAXResult that targets a SAX2 ContentHandler . |
getHandler() Get the ContentHandler that is the Result. | |
getLexicalHandler() Get a SAX2 LexicalHandler for the output. | |
getSystemId() Get the system identifier that was set with setSystemId. | |
setHandler(ContentHandler handler) Set the target to be a SAX2 ContentHandler . | |
setLexicalHandler(LexicalHandler handler) Set the SAX2 LexicalHandler for the output. | |
setSystemId(java.lang.String systemId) Method setSystemId Set the systemID that may be used in association with the ContentHandler . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public static final java.lang.StringFEATURE
TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument, the Transformer supports Result output of this type.publicSAXResult()
publicSAXResult(ContentHandler handler)
ContentHandler
.handler
- Must be a non-null ContentHandler reference.public voidsetHandler(ContentHandler handler)
ContentHandler
.handler
- Must be a non-null ContentHandler reference.publicContentHandlergetHandler()
ContentHandler
that is the Result.public voidsetLexicalHandler(LexicalHandler handler)
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 theContentHandler
to aLexicalHandler
.
handler
- A non-nullLexicalHandler
for handling lexical parse events.publicLexicalHandlergetLexicalHandler()
LexicalHandler
for the output.LexicalHandler
, or null.public voidsetSystemId(java.lang.String systemId)
ContentHandler
.setSystemId
in interfaceResult
systemId
- The system identifier as a URI string.public java.lang.StringgetSystemId()
getSystemId
in interfaceResult