Class WritingBuffer
java.lang.Object
java.io.Writer
com.espertech.esper.common.client.json.minimaljson.WritingBuffer
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
A lightweight writing buffer to reduce the amount of write operations to be performed on the
underlying writer. This implementation is not thread-safe. It deliberately deviates from the
contract of Writer. In particular, it does not flush or close the wrapped writer nor does it
ensure that the wrapped writer is open.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WritingBuffer
-
-
Method Details
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
Flushes the internal buffer but does not flush the wrapped writer.- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
Does not close or flush the wrapped writer.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-