|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.ow2.easywsdl.wsdl.util.InputStreamForker.ForkedInputStream
protected class InputStreamForker.ForkedInputStream
Constructor Summary | |
---|---|
InputStreamForker.ForkedInputStream()
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
If both forked input streams are closed, the original input stream is closed. |
java.util.LinkedList<byte[]> |
getBufferList()
|
boolean |
isClosed()
|
boolean |
markSupported()
|
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] cbuf)
|
int |
read(byte[] cbuf,
int off,
int len)
|
void |
setOtherForkedInputStream(InputStreamForker.ForkedInputStream otherForkedInputStream)
|
long |
skip(long n)
|
Methods inherited from class java.io.InputStream |
---|
mark, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamForker.ForkedInputStream()
Method Detail |
---|
public void setOtherForkedInputStream(InputStreamForker.ForkedInputStream otherForkedInputStream)
public java.util.LinkedList<byte[]> getBufferList()
public boolean isClosed()
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
If both forked input streams are closed, the original input stream is closed.
If the forked stream has already been closed, this method has no effect.
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
Reads the next byte of data from the input stream. The value byte is
returned as an int
in the range 0
to
255
. If no byte is available because the end of the
stream has been reached, the value -1
is returned.
This method blocks until input data is available, the end of the
stream is detected, or an exception is thrown.
The byte is read in the internal buffer. If no data is available in the internal buffer, the byte is read from the original input stream.
read
in class java.io.InputStream
-1
if the end of the
stream is reached.
java.io.IOException
- if an I/O error occurs.public int read(byte[] cbuf) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException, java.lang.IllegalArgumentException
skip
in class java.io.InputStream
java.io.IOException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |