Package org.apache.zookeeper.server
Class ByteBufferOutputStream
- java.lang.Object
 - 
- java.io.OutputStream
 - 
- org.apache.zookeeper.server.ByteBufferOutputStream
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,AutoCloseable
public class ByteBufferOutputStream extends OutputStream
 
- 
- 
Constructor Summary
Constructors Constructor Description ByteBufferOutputStream(ByteBuffer bb) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidrecord2ByteBuffer(Record record, ByteBuffer bb)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)- 
Methods inherited from class java.io.OutputStream
close, flush 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer bb)
 
 - 
 
- 
Method Detail
- 
write
public void write(int b) throws IOException- Specified by:
 writein classOutputStream- Throws:
 IOException
 
- 
write
public void write(@Nonnull byte[] b) throws IOException
- Overrides:
 writein classOutputStream- Throws:
 IOException
 
- 
write
public void write(@Nonnull byte[] b, int off, int len) throws IOException
- Overrides:
 writein classOutputStream- Throws:
 IOException
 
- 
record2ByteBuffer
public static void record2ByteBuffer(Record record, ByteBuffer bb) throws IOException
- Throws:
 IOException
 
 - 
 
 -