Stax2BlockSource that encapsulates
an char 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 |
|---|---|
| pack-priv final char[] | |
| 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. Reader via which underlying input
source can be accessed.
|
| public char[] | |
| public int | |
| public int |
| mBuffer | back to summary |
|---|---|
| pack-priv final char[] mBuffer | |
| mLength | back to summary |
|---|---|
| pack-priv final int mLength | |
| mStart | back to summary |
|---|---|
| pack-priv final int mStart | |
| Stax2CharArraySource | back to summary |
|---|---|
| public Stax2CharArraySource(char[] 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. Doc from org. This method creates a
| |
| getBuffer | back to summary |
|---|---|
| public char[] getBuffer() | |
| getBufferLength | back to summary |
|---|---|
| public int getBufferLength() | |
| getBufferStart | back to summary |
|---|---|
| public int getBufferStart() | |