| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ContentHandler contentHandler = …;
SAXResult result = new SAXResult(contentHandler);
Based on 6 examples
public class SAXResult extends Object implements Result
Acts as an holder for a transformation Result.
Field Summary | |
---|---|
static String |
FEATURE
If javax.xml.transform.TransformerFactory.getFeature returns true when passed this value as an argument, the Transformer supports Result output of this type. |
Constructor Summary | |
---|---|
Zero-argument default constructor. |
|
SAXResult(ContentHandler handler) Create a SAXResult that targets a SAX2 org.xml.sax.ContentHandler. |
Method Summary | |
---|---|
ContentHandler |
Get the org.xml.sax.ContentHandler that is the Result. |
LexicalHandler |
Get a SAX2 org.xml.sax.ext.LexicalHandler for the output. |
String |
Get the system identifier that was set with setSystemId. |
void |
setHandler(ContentHandler handler) Set the target to be a SAX2 org.xml.sax.ContentHandler. |
void |
setLexicalHandler(LexicalHandler handler) Set the SAX2 org.xml.sax.ext.LexicalHandler for the output. |
void |
setSystemId(String systemId) Method setSystemId Set the systemID that may be used in association with the org.xml.sax.ContentHandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FEATURE
Constructor Detail |
---|
public SAXResult()
public SAXResult(ContentHandler handler)
handler
- Must be a non-null ContentHandler reference.Method Detail |
---|
public ContentHandler getHandler()
public LexicalHandler getLexicalHandler()
LexicalHandler
, or null.public String getSystemId()
public void setHandler(ContentHandler handler)
handler
- Must be a non-null ContentHandler reference.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 {@link org.xml.sax.ContentHandler} to a
LexicalHandler
.
handler
- A non-null LexicalHandler
for
handling lexical parse events.public void setSystemId(String systemId)
systemId
- The system identifier as a URI string.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |