equal
deleted
inserted
replaced
115 * be available as input from this stream. |
115 * be available as input from this stream. |
116 * |
116 * |
117 * @param src the stream to connect to. |
117 * @param src the stream to connect to. |
118 * @param pipeSize the size of the pipe's buffer. |
118 * @param pipeSize the size of the pipe's buffer. |
119 * @exception IOException if an I/O error occurs. |
119 * @exception IOException if an I/O error occurs. |
120 * @exception IllegalArgumentException if <code>pipeSize <= 0</code>. |
120 * @exception IllegalArgumentException if {@code pipeSize <= 0}. |
121 * @since 1.6 |
121 * @since 1.6 |
122 */ |
122 */ |
123 public PipedInputStream(PipedOutputStream src, int pipeSize) |
123 public PipedInputStream(PipedOutputStream src, int pipeSize) |
124 throws IOException { |
124 throws IOException { |
125 initPipe(pipeSize); |
125 initPipe(pipeSize); |
145 * It must be {@linkplain java.io.PipedOutputStream#connect( |
145 * It must be {@linkplain java.io.PipedOutputStream#connect( |
146 * java.io.PipedInputStream) |
146 * java.io.PipedInputStream) |
147 * connected} to a <code>PipedOutputStream</code> before being used. |
147 * connected} to a <code>PipedOutputStream</code> before being used. |
148 * |
148 * |
149 * @param pipeSize the size of the pipe's buffer. |
149 * @param pipeSize the size of the pipe's buffer. |
150 * @exception IllegalArgumentException if <code>pipeSize <= 0</code>. |
150 * @exception IllegalArgumentException if {@code pipeSize <= 0}. |
151 * @since 1.6 |
151 * @since 1.6 |
152 */ |
152 */ |
153 public PipedInputStream(int pipeSize) { |
153 public PipedInputStream(int pipeSize) { |
154 initPipe(pipeSize); |
154 initPipe(pipeSize); |
155 } |
155 } |