Stax2BlockSource that encapsulates
a byte array.
Note that no copy is made of the passed-in array, and that further there are direct access methods. Thus, although callers are not to modify contents of returned array, this can not be guaranteed; and as such if this would be a problem (security problem for example), caller has to make a copy of the array and pass that copy to the constructor.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| pack-priv final byte[] | |
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | constructInputStream()
Implements abstract org. InputStream via which underlying input
source can be accessed.
|
| public Reader | constructReader()
Implements abstract org. Note if encoding is not explicitly defined, UTF-8 is assumed. |
| public byte[] | |
| public int | |
| public int | |
| public int |
| DEFAULT_ENCODING | back to summary |
|---|---|
| private static final String DEFAULT_ENCODING | |
| mBuffer | back to summary |
|---|---|
| pack-priv final byte[] mBuffer | |
| mLength | back to summary |
|---|---|
| pack-priv final int mLength | |
| mStart | back to summary |
|---|---|
| pack-priv final int mStart | |
| Stax2ByteArraySource | back to summary |
|---|---|
| public Stax2ByteArraySource(byte[] buf, int start, int len) | |
| constructInputStream | back to summary |
|---|---|
| public InputStream constructInputStream() throws IOException Implements abstract org. Doc from org. This method creates an
| |
| constructReader | back to summary |
|---|---|
| public Reader constructReader() throws IOException Implements abstract org. Note if encoding is not explicitly defined, UTF-8 is assumed.
| |
| getBuffer | back to summary |
|---|---|
| public byte[] getBuffer() | |
| getBufferEnd | back to summary |
|---|---|
| public int getBufferEnd() | |
| getBufferLength | back to summary |
|---|---|
| public int getBufferLength() | |
| getBufferStart | back to summary |
|---|---|
| public int getBufferStart() | |