<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.io.PipedReader
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.PipedOutputStream.html#_top_">Previous</a>  <a href="java.io.PipedWriter.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.io.PipedReader
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.io.Reader.html#_top_">java.io.Reader</a>
           |
           +----java.io.PipedReader
</pre>
<hr>
<dl>
  <dt> public class <b>PipedReader</b>
  <dt> extends <a href="java.io.Reader.html#_top_">Reader</a>
</dl>
Piped character-input streams.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PipedReader()"><b>PipedReader</b></a>()
  <dd>  Create a reader that is not yet connected to a piped writer.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PipedReader(java.io.PipedWriter)"><b>PipedReader</b></a>(PipedWriter)
  <dd>  Create a reader for the specified piped character-output stream.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#close()"><b>close</b></a>()
  <dd>  Close the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#connect(java.io.PipedWriter)"><b>connect</b></a>(PipedWriter)
  <dd>  Connect the specified piped writer to this reader.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#read(char[], int, int)"><b>read</b></a>(char[], int, int)
  <dd>  Read characters into a portion of an array.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="PipedReader"></a>
<a name="PipedReader()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>PipedReader</b>
<pre>
 public PipedReader()
</pre>
<dl>
  <dd> Create a reader that is not yet connected to a piped writer.
<p>
</dl>
<a name="PipedReader(java.io.PipedWriter)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>PipedReader</b>
<pre>
 public PipedReader(<a href="java.io.PipedWriter.html#_top_">PipedWriter</a> src) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Create a reader for the specified piped character-output stream.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="connect(java.io.PipedWriter)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
 public void connect(<a href="java.io.PipedWriter.html#_top_">PipedWriter</a> src) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Connect the specified piped writer to this reader.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If this reader is already connected
  </dl></dd>
</dl>
<a name="read(char[], int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="read"><b>read</b></a>
<pre>
 public int read(char cbuf[],
                 int off,
                 int len) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Read characters into a portion of an array.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> cbuf - Destination buffer
    <dd> off - Offset at which to start storing characters
    <dd> len - Maximum number of characters to read
    <dt> <b>Returns:</b>
    <dd> The number of characters read, or -1 if the end of the
             stream has been reached
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error occurs
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.Reader.html#read(char[], int, int)">read</a> in class <a href="java.io.Reader.html#_top_">Reader</a>
  </dl></dd>
</dl>
<a name="close()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="close"><b>close</b></a>
<pre>
 public void close() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Close the stream.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error occurs
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.Reader.html#close()">close</a> in class <a href="java.io.Reader.html#_top_">Reader</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.PipedOutputStream.html#_top_">Previous</a>  <a href="java.io.PipedWriter.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
