javax.xml.transform.sax
public class SAXResult extends Object implements Result
Field Summary | |
---|---|
static String | FEATURE
If {@link javax.xml.transform.TransformerFactory#getFeature}
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 {@link org.xml.sax.ContentHandler}.
|
Method Summary | |
---|---|
ContentHandler | getHandler()
Get the {@link org.xml.sax.ContentHandler} that is the Result.
|
LexicalHandler | getLexicalHandler()
Get a SAX2 {@link org.xml.sax.ext.LexicalHandler} for the output.
|
String | getSystemId()
Get the system identifier that was set with setSystemId.
|
void | setHandler(ContentHandler handler)
Set the target to be a SAX2 {@link org.xml.sax.ContentHandler}.
|
void | setLexicalHandler(LexicalHandler handler)
Set the SAX2 {@link 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 {@link org.xml.sax.ContentHandler}.
|
Parameters: handler Must be a non-null ContentHandler reference.
Returns: The ContentHandler that is to be transformation output.
Returns: A LexicalHandler
, or null.
Returns: The system identifier that was set with setSystemId, or null if setSystemId was not called.
Parameters: handler Must be a non-null ContentHandler reference.
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
.
Parameters: handler A non-null LexicalHandler
for
handling lexical parse events.
Parameters: systemId The system identifier as a URI string.