Package org.apache.hadoop.hbase.io
Interface ByteBufferWriter
- All Known Implementing Classes:
AsyncProtobufLogWriter.OutputStreamWrapper,ByteArrayOutputStream,ByteBufferListOutputStream,ByteBufferOutputStream,ByteBufferWriterDataOutputStream,ByteBufferWriterOutputStream
This interface marks a class to support writing ByteBuffers into it.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(ByteBuffer b, int off, int len) Writeslenbytes from the specified ByteBuffer starting at offsetoffvoidwriteInt(int i) Writes anintto the underlying output stream as four bytes, high byte first.
-
Method Details
-
write
Writeslenbytes from the specified ByteBuffer starting at offsetoff- Parameters:
b- the data.off- the start offset in the data.len- the number of bytes to write.- Throws:
IOException- if an I/O error occurs.
-
writeInt
Writes anintto the underlying output stream as four bytes, high byte first.- Parameters:
i- theintto write- Throws:
IOException- if an I/O error occurs.
-