private static class SaxWriterImpl.LongcharOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private java.io.StringWriter |
buffer
Buffered output Stream.
|
private boolean |
isStarted
Lazy initialization flag.
|
private longchar |
lchar
A valid longchar object to write.
|
| Modifier | Constructor and Description |
|---|---|
private |
LongcharOutputStream(longchar source)
Constructor accepting a longchar, which will read after first call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close current stream and reset state.
|
void |
flush()
Flush data from internal buffer to longchar object.
|
void |
write(int b)
Write one byte into the buffer.
|
private longchar lchar
private java.io.StringWriter buffer
private volatile boolean isStarted
private LongcharOutputStream(longchar source)
source - A valid longchar object.public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the data to write.java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException