org.apache.zookeeper.server
Class ByteBufferOutputStream
java.lang.Object
java.io.OutputStream
org.apache.zookeeper.server.ByteBufferOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ByteBufferOutputStream
- extends OutputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer bb)
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
record2ByteBuffer
public static void record2ByteBuffer(org.apache.jute.Record record,
ByteBuffer bb)
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation