|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.jboss.axis.transport.http.NonBlockingBufferedInputStream
public class NonBlockingBufferedInputStream
Constructor Summary | |
---|---|
NonBlockingBufferedInputStream()
|
Method Summary | |
---|---|
int |
available()
return the number of bytes available to be read without blocking |
void |
close()
disassociate from the underlying input stream |
int |
peek()
Just like read except byte is not removed from the buffer. |
int |
read()
Read a byte from the input stream, blocking if necessary. |
int |
read(byte[] dest)
Read bytes from the input stream. |
int |
read(byte[] dest,
int off,
int len)
Read a specified number of bytes from the input stream. |
void |
setContentLength(int value)
set the maximum number of bytes allowed to be read from this input stream. |
void |
setInputStream(InputStream in)
set the input stream to be used for subsequent reads |
int |
skip(int len)
skip over (and discard) a specified number of bytes in this input stream |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonBlockingBufferedInputStream()
Method Detail |
---|
public void setInputStream(InputStream in)
in
- the InputStreampublic void setContentLength(int value)
value
- the Content Lengthpublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] dest) throws IOException
read
in class InputStream
dest
- byte array to read into
IOException
public int read(byte[] dest, int off, int len) throws IOException
read
in class InputStream
dest
- byte array to read intooff
- starting offset into the byte arraylen
- maximum number of bytes to read
IOException
public int skip(int len) throws IOException
len
- the number of bytes to be skipped
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public int peek() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |