public class ReusableByteBufferInputStream extends InputStream
| Constructor and Description |
|---|
ReusableByteBufferInputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setByteBuffer(ByteBuffer buf) |
long |
skip(long n) |
available, close, readpublic void setByteBuffer(ByteBuffer buf)
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 InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.