@NotThreadSafe public final class ByteBufferInputStream extends InputStream
InputStream that reads a ByteBuffer.| Constructor and Description |
|---|
ByteBufferInputStream(ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
ByteBufferInputStream |
reset(ByteBuffer buffer) |
long |
skip(long n) |
available, close, mark, markSupported, read, resetpublic ByteBufferInputStream(ByteBuffer buffer)
public ByteBufferInputStream reset(ByteBuffer buffer)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.