Package com.yahoo.io
Class ByteWriter
java.lang.Object
java.io.Writer
com.yahoo.text.GenericWriter
com.yahoo.io.AbstractByteWriter
com.yahoo.io.ByteWriter
- All Implemented Interfaces:
WritableByteTransmitter
,Closeable
,Flushable
,Appendable
,AutoCloseable
A buffered writer which accepts byte arrays in addition to character arrays.
- Author:
- Steinar Knutsen
-
Field Summary
Fields inherited from class com.yahoo.io.AbstractByteWriter
buffer, charBuffer, encoder
-
Constructor Summary
ConstructorDescriptionByteWriter
(OutputStream stream) ByteWriter
(OutputStream stream, CharsetEncoder encoder) -
Method Summary
Methods inherited from class com.yahoo.io.AbstractByteWriter
append, append, append, append, appended, getEncoding, write, write, write, write, write, write, write, write
Methods inherited from class com.yahoo.text.GenericWriter
write, write, write
-
Constructor Details
-
ByteWriter
-
ByteWriter
-
-
Method Details
-
send
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-