Package com.yahoo.io
Class BufferChain
java.lang.Object
com.yahoo.io.BufferChain
Data store for AbstractByteWriter. Tested in unit tests for ByteWriter.
- Author:
- Steinar Knutsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(byte b) voidappend(byte[] alreadyEncoded) voidappend(byte[] alreadyEncoded, int offset, int length) voidvoidappend(ByteBuffer alreadyEncoded) voidappend(CharBuffer toEncode, CharsetEncoder encoder) longappended()voidflush()
-
Constructor Details
-
BufferChain
-
-
Method Details
-
append
- Throws:
IOException
-
append
- Throws:
IOException
-
append
- Throws:
IOException
-
append
- Throws:
IOException
-
append
- Throws:
IOException
-
append
- Throws:
IOException
-
flush
- Throws:
IOException
-
appended
public long appended()- Returns:
- number of bytes written to this buffer
-