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, read
public void setByteBuffer(ByteBuffer buf)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.