jdk/src/share/classes/java/io/PipedReader.java
changeset 18156 edb590d448c5
parent 5506 202f599c92aa
child 21334 c60dfce46a77
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
    89      * will then be  available as input from this stream.
    89      * will then be  available as input from this stream.
    90 
    90 
    91      * @param      src       the stream to connect to.
    91      * @param      src       the stream to connect to.
    92      * @param      pipeSize  the size of the pipe's buffer.
    92      * @param      pipeSize  the size of the pipe's buffer.
    93      * @exception  IOException  if an I/O error occurs.
    93      * @exception  IOException  if an I/O error occurs.
    94      * @exception  IllegalArgumentException if <code>pipeSize <= 0</code>.
    94      * @exception  IllegalArgumentException if {@code pipeSize <= 0}.
    95      * @since      1.6
    95      * @since      1.6
    96      */
    96      */
    97     public PipedReader(PipedWriter src, int pipeSize) throws IOException {
    97     public PipedReader(PipedWriter src, int pipeSize) throws IOException {
    98         initPipe(pipeSize);
    98         initPipe(pipeSize);
    99         connect(src);
    99         connect(src);
   118      * It must be  {@linkplain java.io.PipedWriter#connect(
   118      * It must be  {@linkplain java.io.PipedWriter#connect(
   119      * java.io.PipedReader) connected} to a <code>PipedWriter</code>
   119      * java.io.PipedReader) connected} to a <code>PipedWriter</code>
   120      * before being used.
   120      * before being used.
   121      *
   121      *
   122      * @param   pipeSize the size of the pipe's buffer.
   122      * @param   pipeSize the size of the pipe's buffer.
   123      * @exception  IllegalArgumentException if <code>pipeSize <= 0</code>.
   123      * @exception  IllegalArgumentException if {@code pipeSize <= 0}.
   124      * @since      1.6
   124      * @since      1.6
   125      */
   125      */
   126     public PipedReader(int pipeSize) {
   126     public PipedReader(int pipeSize) {
   127         initPipe(pipeSize);
   127         initPipe(pipeSize);
   128     }
   128     }