public class ByteBufferInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ByteBufferInputStream(int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
destroy() |
java.nio.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(java.nio.ByteBuffer buf) |
void |
reset() |
void |
setTimeout(long l)
setSoTimeout.
|
long |
skip(long length) |
void |
write(java.nio.ByteBuffer buffer) |
public long getTimeout()
public void setTimeout(long l)
l - public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int arg0)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read(byte[] buf,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long length)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionInputStream.skip(long)public void write(java.nio.ByteBuffer buffer)
public java.nio.ByteBuffer getBuffer()
public void recycle(java.nio.ByteBuffer buf)
public void destroy()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.