public abstract class ByteBufferInputStream extends SeekableInputStream
Constructor and Description |
---|
ByteBufferInputStream() |
Modifier and Type | Method and Description |
---|---|
abstract int |
read(java.nio.ByteBuffer out) |
abstract java.util.List<java.nio.ByteBuffer> |
remainingBuffers() |
ByteBufferInputStream |
remainingStream() |
void |
skipFully(long length) |
abstract java.nio.ByteBuffer |
slice(int length) |
abstract java.util.List<java.nio.ByteBuffer> |
sliceBuffers(long length) |
ByteBufferInputStream |
sliceStream(long length) |
static ByteBufferInputStream |
wrap(java.nio.ByteBuffer... buffers) |
static ByteBufferInputStream |
wrap(java.util.List<java.nio.ByteBuffer> buffers) |
getPos, seek
public static ByteBufferInputStream wrap(java.nio.ByteBuffer... buffers)
public static ByteBufferInputStream wrap(java.util.List<java.nio.ByteBuffer> buffers)
public void skipFully(long length) throws java.io.IOException
java.io.IOException
public abstract int read(java.nio.ByteBuffer out)
public abstract java.nio.ByteBuffer slice(int length) throws java.io.EOFException
java.io.EOFException
public abstract java.util.List<java.nio.ByteBuffer> sliceBuffers(long length) throws java.io.EOFException
java.io.EOFException
public ByteBufferInputStream sliceStream(long length) throws java.io.EOFException
java.io.EOFException
public abstract java.util.List<java.nio.ByteBuffer> remainingBuffers()
public ByteBufferInputStream remainingStream()