Package com.yahoo.io
Class Utf8ByteWriter
java.lang.Object
java.io.Writer
com.yahoo.text.GenericWriter
com.yahoo.io.AbstractByteWriter
com.yahoo.io.Utf8ByteWriter
- All Implemented Interfaces:
WritableByteTransmitter,Closeable,Flushable,Appendable,AutoCloseable
-
Field Summary
Fields inherited from class com.yahoo.io.AbstractByteWriter
buffer, charBuffer, encoder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()getBuf()Return a buffer ready for read.voidsend(ByteBuffer src) Methods inherited from class com.yahoo.io.AbstractByteWriter
append, append, append, append, appended, getEncoding, write, write, write, write, write, write, write, writeMethods inherited from class com.yahoo.text.GenericWriter
write, write, write
-
Constructor Details
-
Utf8ByteWriter
public Utf8ByteWriter(int initialBuffer)
-
-
Method Details
-
send
- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
getBuf
Return a buffer ready for read. Must only be called after writer has been closed.- Returns:
- A flipped ByteBuffer
-