java.lang.Object | |
↳ | javax.xml.transform.stax.StAXResult |
Acts as a holder for an XML Result
in the
form of a StAX writer,i.e.
XMLStreamWriter
or XMLEventWriter
.
StAXResult
can be used in all cases that accept
a Result
, e.g. Transformer
,
Validator
which accept
Result
as input.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of a | |||||||||||
Creates a new instance of a |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The returned system identifier is always | |||||||||||
Get the | |||||||||||
Get the | |||||||||||
In the context of a |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
If getFeature(String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type.
Creates a new instance of a StAXResult
by supplying an XMLEventWriter
.
XMLEventWriter
must be a
non-null
reference.
xmlEventWriter | XMLEventWriter used to create
this StAXResult . |
---|
IllegalArgumentException | If xmlEventWriter ==
null .
|
---|
Creates a new instance of a StAXResult
by supplying an XMLStreamWriter
.
XMLStreamWriter
must be a
non-null
reference.
xmlStreamWriter | XMLStreamWriter used to create
this StAXResult . |
---|
IllegalArgumentException | If xmlStreamWriter ==
null .
|
---|
The returned system identifier is always null
.
null
.
Get the XMLEventWriter
used by this
StAXResult
.
XMLEventWriter
will be null
if this StAXResult
was created with a
XMLStreamWriter
.
XMLEventWriter
used by this
StAXResult
.
Get the XMLStreamWriter
used by this
StAXResult
.
XMLStreamWriter
will be null
if this StAXResult
was created with a
XMLEventWriter
.
XMLStreamWriter
used by this
StAXResult
.
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 UnsupportedOperationException is always thrown by this method.
systemId | Ignored. |
---|
UnsupportedOperationException | Is always thrown by this method. |
---|