equal
deleted
inserted
replaced
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 } |