|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.transform.sax.SAXResult
Acts as an holder for a transformation Result.
Field Summary | |
static java.lang.String |
FEATURE
If TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type. |
Constructor Summary | |
SAXResult()
Zero-argument default constructor. |
|
SAXResult(ContentHandler handler)
Create a SAXResult that targets a SAX2 ContentHandler. |
Method Summary | |
ContentHandler |
getHandler()
Get the ContentHandler that is the Result. |
LexicalHandler |
getLexicalHandler()
Get a SAX2 LexicalHandler for the output. |
java.lang.String |
getSystemId()
Get the system identifier that was set with setSystemId. |
void |
setHandler(ContentHandler handler)
Set the target to be a SAX2 ContentHandler. |
void |
setLexicalHandler(LexicalHandler handler)
Set the SAX2 LexicalHandler for the output. |
void |
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 |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String FEATURE
TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type.Constructor Detail |
public SAXResult()
public SAXResult(ContentHandler handler)
handler
- Must be a non-null ContentHandler reference.Method Detail |
public void setHandler(ContentHandler handler)
handler
- Must be a non-null ContentHandler reference.public ContentHandler getHandler()
public void setLexicalHandler(LexicalHandler handler)
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 ContentHandler to a LexicalHandler.
handler
- A non-null LexicalHandler for
handling lexical parse events.public LexicalHandler getLexicalHandler()
public void setSystemId(java.lang.String systemId)
systemId
- The system identifier as a URI string.public java.lang.String getSystemId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |