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 TypeMethodDescriptionvoid
write
(ByteBuffer b, int off, int len) Writeslen
bytes from the specified ByteBuffer starting at offsetoff
void
writeInt
(int i) Writes anint
to the underlying output stream as four bytes, high byte first.
-
Method Details
-
write
Writeslen
bytes 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 anint
to the underlying output stream as four bytes, high byte first.- Parameters:
i
- theint
to write- Throws:
IOException
- if an I/O error occurs.
-