| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class StAXResult extends Object implements Result
Acts as a holder for an XML {@link Result} in the
form of a StAX writer,i.e.
{@link XMLStreamWriter} or {@link XMLEventWriter}.
StAXResult
can be used in all cases that accept
a Result
, e.g. {@link javax.xml.transform.Transformer},
{@link javax.xml.validation.Validator} which accept
Result
as input.
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 | |
---|---|
StAXResult(XMLEventWriter xmlEventWriter) Creates a new instance of a StAXResult
by supplying an javax.xml.stream.XMLEventWriter.
|
|
StAXResult(XMLStreamWriter xmlStreamWriter) Creates a new instance of a StAXResult
by supplying an javax.xml.stream.XMLStreamWriter.
|
Method Summary | |
---|---|
String |
The returned system identifier is always null .
|
XMLEventWriter |
Get the XMLEventWriter used by this
StAXResult .
|
XMLStreamWriter |
Get the XMLStreamWriter used by this
StAXResult .
|
void |
setSystemId(String systemId) In the context of a StAXResult , it is not appropriate
to explicitly set the system identifier.
|
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 StAXResult(XMLEventWriter xmlEventWriter)
Creates a new instance of a StAXResult
by supplying an {@link XMLEventWriter}.
XMLEventWriter
must be a
non-null
reference.
xmlEventWriter
- XMLEventWriter
used to create
this StAXResult
.public StAXResult(XMLStreamWriter xmlStreamWriter)
Creates a new instance of a StAXResult
by supplying an {@link XMLStreamWriter}.
XMLStreamWriter
must be a
non-null
reference.
xmlStreamWriter
- XMLStreamWriter
used to create
this StAXResult
.Method Detail |
---|
public String getSystemId()
The returned system identifier is always null
.
null
.public XMLEventWriter getXMLEventWriter()
Get the XMLEventWriter
used by this
StAXResult
.
XMLEventWriter
will be null
if this StAXResult
was created with a
XMLStreamWriter
.
XMLEventWriter
used by this
StAXResult
.public XMLStreamWriter getXMLStreamWriter()
Get the XMLStreamWriter
used by this
StAXResult
.
XMLStreamWriter
will be null
if this StAXResult
was created with a
XMLEventWriter
.
XMLStreamWriter
used by this
StAXResult
.public void setSystemId(String systemId)
In the context of a StAXResult
, it is not appropriate
to explicitly set the system identifier.
The XMLEventWriter
or XMLStreamWriter
used to construct this StAXResult
determines the
system identifier of the XML result.
An {@link UnsupportedOperationException} is always thrown by this method.
systemId
- Ignored.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |