|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
de.cau.cs.kieler.kiml.graphviz.layouter.NonBlockingInputStream
public class NonBlockingInputStream
An input stream wrapper that does not block when reading, but returns the EOF code if no character is available.
Constructor Summary | |
---|---|
NonBlockingInputStream(InputStream theinputStream)
Creates a non-blocking input stream for the given stream. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
This implementation of close does nothing. |
void |
forceClose()
Forces the nested input stream to be closed. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonBlockingInputStream(InputStream theinputStream)
theinputStream
- the input streamMethod Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void close()
close
does nothing. Use forceClose()
to
close the input stream.
close
in interface Closeable
close
in class InputStream
public void forceClose() throws IOException
IOException
- if an I/O error occurspublic int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |