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
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
read
(ByteBuffer out) abstract List
<ByteBuffer> void
skipFully
(long length) abstract ByteBuffer
slice
(int length) abstract List
<ByteBuffer> sliceBuffers
(long length) sliceStream
(long length) static ByteBufferInputStream
wrap
(ByteBuffer... buffers) static ByteBufferInputStream
wrap
(List<ByteBuffer> buffers) Methods inherited from class org.apache.iceberg.io.SeekableInputStream
getPos, seek
Methods 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
-