Package org.apache.zookeeper.server
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
org.apache.zookeeper.server.ByteBufferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static void
byteBuffer2Record
(ByteBuffer bb, Record record) int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) long
skip
(long n) Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
byteBuffer2Record
- Throws:
IOException
-