org.mortbay.http.nio
public class ByteBufferInputStream extends InputStream
Version: $Revision: 1.5 $
| Constructor Summary | |
|---|---|
| ByteBufferInputStream(int bufferSize) Constructor. | |
| Method Summary | |
|---|---|
| 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 offset, int length) |
| int | read(byte[] buf) |
| void | recycle(ByteBuffer buf) |
| void | reset() |
| void | setTimeout(long l) setSoTimeout. |
| long | skip(long length) |
| void | write(ByteBuffer buffer) |
Returns:
Parameters: l
See Also: java.io.InputStream#skip(long)