org.mortbay.http.nio
Class ByteBufferInputStream
InputStream
org.mortbay.http.nio.ByteBufferInputStream
public class ByteBufferInputStream
extends InputStream
ByteBufferInputStream
public ByteBufferInputStream(int bufferSize)
Constructor.
available
public int available()
throws IOException
close
public void close()
throws IOException
destroy
public void destroy()
getBuffer
public ByteBuffer getBuffer()
Get a buffer to write to this InputStream.
The buffer wll either be a new direct buffer or a recycled buffer.
getTimeout
public long getTimeout()
getSoTimeout.
mark
public void mark(int arg0)
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(byte[] buf)
throws IOException
read
public int read(byte[] buf,
int offset,
int length)
throws IOException
recycle
public void recycle(ByteBuffer buf)
reset
public void reset()
throws IOException
setTimeout
public void setTimeout(long l)
setSoTimeout.
skip
public long skip(long length)
throws IOException
java.io.InputStream.skip(long)
write
public void write(ByteBuffer buffer)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.