java.lang.Object | |
↳ | javax.xml.transform.sax.SAXResult |
Acts as an holder for a transformation Result.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FEATURE |
If
getFeature(String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type.
|
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
javax.xml.transform.Result
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Zero-argument default constructor.
|
||||||||||
|
Create a SAXResult that targets a SAX2
ContentHandler
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Get the
ContentHandler
that is the Result.
|
||||||||||
|
Get a SAX2
LexicalHandler
for the output.
|
||||||||||
|
Get the system identifier that was set with setSystemId.
|
||||||||||
|
Set the target to be a SAX2
ContentHandler
.
|
||||||||||
|
Set the SAX2
LexicalHandler
for the output.
|
||||||||||
|
Method setSystemId Set the systemID that may be used in association
with the
ContentHandler
.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
javax.xml.transform.Result
|
If
getFeature(String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type.
Create a SAXResult that targets a SAX2
ContentHandler
.
handler | Must be a non-null ContentHandler reference. |
---|
Get the
ContentHandler
that is the Result.
Get a SAX2
LexicalHandler
for the output.
LexicalHandler
, or null.
Get the system identifier that was set with setSystemId.
Set the target to be a SAX2
ContentHandler
.
handler | Must be a non-null ContentHandler reference. |
---|
Set the SAX2
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
ContentHandler
to a
LexicalHandler
.
handler |
A non-null
LexicalHandler
for
handling lexical parse events.
|
---|
Method setSystemId Set the systemID that may be used in association
with the
ContentHandler
.
systemId | The system identifier as a URI string. |
---|