Stax2Sources
that an be used to access fixed-length in-memory data sources, such
as byte and char arrays, Strings, StringBuffers and so forth.
The main reason for using such a source object (instead of constructing
wrapper Readers or InputStreams) is that concrete implementations
usually also allow more direct access to the underlying data, so
that stream reader implementations may be able to do more optimal
access.
| 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 URL | getReference()
Implements abstract org. |
| Stax2BlockSource | back to summary |
|---|---|
| protected Stax2BlockSource() | |
| 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 URL getReference() Implements abstract org. Usually there is no way to refer to the underlying data source, since they are in-memory data structures. Because of this, the base implementation just returns null.
| |