Acts as a holder for an XML Source in the
form of a StAX reader,i.e.
XMLStreamReader or XMLEventReader.
StAXSource can be used in all cases that accept
a Source, e.g. javax.,
javax. which accept
Source as input.
StAXSources are consumed during processing
and are not reusable.
XMLStreamReader, XMLEventReader
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FEATURE
If |
| private String | systemId
System identifier of source input. |
| private XMLEventReader | xmlEventReader
|
| private XMLStreamReader | xmlStreamReader
|
| Access | Constructor and Description |
|---|---|
| public | StAXSource(final XMLEventReader
XMLEventReader used to create
this StAXSource.Creates a new instance of a |
| public | StAXSource(final XMLStreamReader
XMLStreamReader used to create
this StAXSource.Creates a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: System identifier used by thisStAXSource.Implements javax. Get the system identifier used by this
|
| public XMLEventReader | Returns: XMLEventReader used by this
StAXSource.Get the |
| public XMLStreamReader | Returns: XMLStreamReader used by this
StAXSource.Get the |
| public boolean | Returns: unconditionally falseOverrides default javax. Indicates whether the |
| public void | setSystemId(final String
Ignored. systemId)Implements javax. In the context of a |
| FEATURE | back to summary |
|---|---|
| public static final String FEATURE If | |
| systemId | back to summary |
|---|---|
| private String systemId System identifier of source input. | |
| xmlEventReader | back to summary |
|---|---|
| private XMLEventReader xmlEventReader
| |
| xmlStreamReader | back to summary |
|---|---|
| private XMLStreamReader xmlStreamReader
| |
| StAXSource | back to summary |
|---|---|
| public StAXSource(final XMLEventReader xmlEventReader) throws XMLStreamException Creates a new instance of a
| |
| StAXSource | back to summary |
|---|---|
| public StAXSource(final XMLStreamReader xmlStreamReader) Creates a new instance of a
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Get the system identifier used by this
The The system identifier may be | |
| getXMLEventReader | back to summary |
|---|---|
| public XMLEventReader getXMLEventReader() Get the
| |
| getXMLStreamReader | back to summary |
|---|---|
| public XMLStreamReader getXMLStreamReader() Get the
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default javax. Indicates whether the
| |
| setSystemId | back to summary |
|---|---|
| public void setSystemId(final String systemId) Implements javax. In the context of a An
| |