public class ByteBufferInputStream extends InputStream
| Constructor and Description |
|---|
ByteBufferInputStream(int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
destroy() |
ByteBuffer |
getBuffer()
Get a buffer to write to this InputStream.
|
long |
getTimeout()
getSoTimeout.
|
void |
mark(int arg0) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int offset,
int length) |
void |
recycle(ByteBuffer buf) |
void |
reset() |
void |
setTimeout(long l)
setSoTimeout.
|
long |
skip(long length) |
void |
write(ByteBuffer buffer) |
public long getTimeout()
public void setTimeout(long l)
l - public int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int arg0)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] buf,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long length)
throws IOException
skip in class InputStreamIOExceptionInputStream.skip(long)public void write(ByteBuffer buffer)
public ByteBuffer getBuffer()
public void recycle(ByteBuffer buf)
public void destroy()
Copyright © 2013. All rights reserved.