Class AsyncProtobufLogWriter.OutputStreamWrapper
java.lang.Object
java.io.OutputStream
org.apache.hadoop.hbase.regionserver.wal.AsyncProtobufLogWriter.OutputStreamWrapper
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,ByteBufferWriter
- Enclosing class:
- AsyncProtobufLogWriter
private static final class AsyncProtobufLogWriter.OutputStreamWrapper
extends OutputStream
implements ByteBufferWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwrite(byte[] b, int off, int len) voidwrite(int b) voidwrite(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.Methods inherited from class java.io.OutputStream
flush, write
-
Field Details
-
out
-
oneByteBuf
-
-
Constructor Details
-
OutputStreamWrapper
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
Description copied from interface:ByteBufferWriterWriteslenbytes from the specified ByteBuffer starting at offsetoff- Specified by:
writein interfaceByteBufferWriter- 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
Description copied from interface:ByteBufferWriterWrites anintto the underlying output stream as four bytes, high byte first.- Specified by:
writeIntin interfaceByteBufferWriter- Parameters:
i- theintto write- Throws:
IOException- if an I/O error occurs.
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-