public abstract class ByteBufferInputStream extends InputStream
| Constructor and Description |
|---|
ByteBufferInputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
position() |
abstract int |
read(ByteBuffer out) |
abstract List<ByteBuffer> |
remainingBuffers() |
ByteBufferInputStream |
remainingStream() |
void |
skipFully(long n) |
abstract ByteBuffer |
slice(int length) |
abstract List<ByteBuffer> |
sliceBuffers(long length) |
ByteBufferInputStream |
sliceStream(long length) |
static ByteBufferInputStream |
wrap(ByteBuffer... buffers) |
static ByteBufferInputStream |
wrap(List<ByteBuffer> buffers) |
available, close, mark, markSupported, read, read, read, reset, skippublic static ByteBufferInputStream wrap(ByteBuffer... buffers)
public static ByteBufferInputStream wrap(List<ByteBuffer> buffers)
public abstract long position()
public void skipFully(long n)
throws IOException
IOExceptionpublic abstract int read(ByteBuffer out)
public abstract ByteBuffer slice(int length) throws EOFException
EOFExceptionpublic abstract List<ByteBuffer> sliceBuffers(long length) throws EOFException
EOFExceptionpublic ByteBufferInputStream sliceStream(long length) throws EOFException
EOFExceptionpublic abstract List<ByteBuffer> remainingBuffers()
public ByteBufferInputStream remainingStream()
Copyright © 2018 The Apache Software Foundation. All rights reserved.