public class TimedPipedInputStream extends InputStream
TimedPipedOutputStream.| Constructor and Description |
|---|
TimedPipedInputStream(int bufferSize,
long timeout,
TimeUnit timeUnit,
TimedPipedOutputStream origin) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Gets the number of bytes available to be read.
|
void |
close() |
int |
read() |
int |
read(byte[] b)
See
InputStream, but it may return 0 if no byte has been read after the specified timeout. |
int |
read(byte[] b,
int off,
int len)
See
InputStream, but it may return 0 if no byte has been read after the specified timeout. |
mark, markSupported, reset, skippublic TimedPipedInputStream(int bufferSize,
long timeout,
TimeUnit timeUnit,
TimedPipedOutputStream origin)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
InputStream, but it may return 0 if no byte has been read after the specified timeout.read in class InputStreamb - Destination buffer.0 if there is no available data after the timeout is reached, or
-1 if there is no more data because the end of the stream has been reached.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
InputStream, but it may return 0 if no byte has been read after the specified timeout.read in class InputStreamb - Destination buffer.0 if there is no available data after the timeout is reached, or
-1 if there is no more data because the end of the stream has been reached.IOExceptionpublic int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.