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 SummaryConstructors Constructor Description ByteBufferOutputStream(ByteBuffer bb)
 - 
Method SummaryAll 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.OutputStreamclose, flush
 
- 
 
- 
- 
- 
Constructor Detail- 
ByteBufferOutputStreampublic ByteBufferOutputStream(ByteBuffer bb) 
 
- 
 - 
Method Detail- 
writepublic void write(int b) throws IOException- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] b) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
writepublic void write(byte[] b, int off, int len) throws IOException- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
 - 
record2ByteBufferpublic static void record2ByteBuffer(Record record, ByteBuffer bb) throws IOException - Throws:
- IOException
 
 
- 
 
-