public class PipedInputStream extends InputStream
PipedInputStream. This piped
stream does not have the flaws found in the java.io implementation. It
allows multiple threads to read from it without interfering with the
stream's state. Also it can't get into a one-second polling mode.PipedOutputStream| Constructor and Description |
|---|
PipedInputStream() |
PipedInputStream(PipedOutputStream pout) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
isClosed() |
boolean |
isReady() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int length) |
long |
skip(long n) |
String |
toString() |
mark, markSupported, resetpublic PipedInputStream()
public PipedInputStream(PipedOutputStream pout) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean isReady()
throws IOException
IOExceptionpublic boolean isClosed()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamCopyright © 2006–2015 Cojen. All rights reserved.