Package org.apache.zookeeper.server
Class ByteBufferInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.apache.zookeeper.server.ByteBufferInputStream
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public class ByteBufferInputStream extends InputStream 
- 
- 
Constructor SummaryConstructors Constructor Description ByteBufferInputStream(ByteBuffer bb)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()static voidbyteBuffer2Record(ByteBuffer bb, Record record)intread()intread(byte[] b)intread(byte[] b, int off, int len)longskip(long n)- 
Methods inherited from class java.io.InputStreamclose, mark, markSupported, reset
 
- 
 
- 
- 
- 
Constructor Detail- 
ByteBufferInputStreampublic ByteBufferInputStream(ByteBuffer bb) 
 
- 
 - 
Method Detail- 
readpublic int read() throws IOException- Specified by:
- readin class- InputStream
- Throws:
- IOException
 
 - 
availablepublic int available() throws IOException- Overrides:
- availablein class- InputStream
- Throws:
- IOException
 
 - 
readpublic int read(byte[] b, int off, int len) throws IOException- Overrides:
- readin class- InputStream
- Throws:
- IOException
 
 - 
readpublic int read(byte[] b) throws IOException- Overrides:
- readin class- InputStream
- Throws:
- IOException
 
 - 
skippublic long skip(long n) throws IOException- Overrides:
- skipin class- InputStream
- Throws:
- IOException
 
 - 
byteBuffer2Recordpublic static void byteBuffer2Record(ByteBuffer bb, Record record) throws IOException - Throws:
- IOException
 
 
- 
 
-