22.5
java.io.PipedInputStream
THE PACKAGE JAVA.IO
If
src
is an unconnected piped output stream and
snk
is an unconnected
piped input stream, they may be connected by either the call:
snk.connect(src)
or the call:
src.connect(snk)
The two calls have the same effect.
22.5.4
public int read() throws IOException
If a thread was providing data bytes to the connected piped output stream, but the
thread is no longer alive, then an
IOException
is thrown.
Implements the
read
method of
InputStream
( 22.3.1).
22.5.5
public int read(byte[] b, int off, int len)
throws IOException, NullPointerException,
IndexOutOfBoundsException
If a thread was providing data bytes to the connected piped output stream, but the
thread is no longer alive, then an
IOException
is thrown.
Overrides the
read
method of
InputStream
( 22.3.3).
22.5.6
public void close() throws IOException
This piped input stream is closed and may no longer be used for reading bytes.
Overrides the
close
method of
InputStream
( 22.3.6).
688
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved