private static class SaxReaderImpl.LongcharInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayInputStream |
bais
Buffered input Stream.
|
private boolean |
isStarted
Lazy initialization flag.
|
private longchar |
lchar
A valid longchar object to read
|
| Modifier | Constructor and Description |
|---|---|
private |
LongcharInputStream(longchar source)
Constructor accepting a longchar, which will read after first call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close input stream.
|
int |
read()
Reads the next byte of data from the input stream.
|
void |
reset()
Resets the input stream to begin reading from the first character
of this input stream's underlying buffer.
|
private longchar lchar
private volatile boolean isStarted
private java.io.ByteArrayInputStream bais
private LongcharInputStream(longchar source)
source - A valid longchar object.public int read()
throws java.io.IOException
int in the range 0 to
255. If no byte is available because the end of the stream
has been reached, the value -1 is returned.read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException