Stax2Sources
that refer to a resource in such a way, that an efficient
InputStream or Reader can be constructed.
Additionally, referenced sources also provide the base URI that allows
for resolving relative references from within content read from
such resources. Typical examples of references are
java.net.URL and java.io.File : both for which
a default implementations exist in this package
Stax2FileSource, Stax2URLSource
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract InputStream | constructInputStream()
Implements abstract org. InputStream via which underlying input
source can be accessed.
|
| public abstract Reader | constructReader()
Implements abstract org. Reader via which underlying input
source can be accessed.
|
| public abstract URL | |
| public String | getSystemId()
Overrides org. Implements javax. |
| Stax2ReferentialSource | back to summary |
|---|---|
| protected Stax2ReferentialSource() | |
| constructInputStream | back to summary |
|---|---|
| public abstract InputStream constructInputStream() throws IOException Implements abstract org. Doc from org. This method creates an
| |
| constructReader | back to summary |
|---|---|
| public abstract Reader constructReader() throws IOException Implements abstract org. Doc from org. This method creates a
| |
| getReference | back to summary |
|---|---|
| public abstract URL getReference() Implements abstract org.
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Overrides org. Implements javax. Since we can determine a system id from the base URL
| |