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.OutputStream
b
- the data to write.java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException