Package org.apache.iceberg.io
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
org.apache.iceberg.io.SeekableInputStream
org.apache.iceberg.io.ByteBufferInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intread(ByteBuffer out) abstract List<ByteBuffer>voidskipFully(long length) abstract ByteBufferslice(int length) abstract List<ByteBuffer>sliceBuffers(long length) sliceStream(long length) static ByteBufferInputStreamwrap(ByteBuffer... buffers) static ByteBufferInputStreamwrap(List<ByteBuffer> buffers) Methods inherited from class org.apache.iceberg.io.SeekableInputStream
getPos, seekMethods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferInputStream
public ByteBufferInputStream()
-
-
Method Details
-
wrap
-
wrap
-
skipFully
- Throws:
IOException
-
read
-
slice
- Throws:
EOFException
-
sliceBuffers
- Throws:
EOFException
-
sliceStream
- Throws:
EOFException
-
remainingBuffers
-
remainingStream
-