/** * Constructs a new {@code PipedInputStream} connected to the * {@link PipedOutputStream} {@code out}. Any data written to the output * stream can be read from the this input stream. * * @param out * the piped output stream to connect to. * @throws IOException * if this stream or {@code out} are already connected. */ public PipedInputStream(PipedOutputStream outJ) { // throws IOException { connect(outJ); }
/** * Connects this {@code PipedInputStream} to a {@link PipedOutputStream}. * Any data written to the output stream becomes readable in this input * stream. * * @param src * the source output stream. * @throws IOException * if either stream is already connected. */ public void connect(PipedOutputStream src) { //throws IOException { src.connect(this); }
//throws IOException { /** * Constructs a new PipedInputStream connected to the PipedOutputStream * <code>out</code> and uses the specified buffer size. Any data written * to the output stream can be read from this input stream. * * @param out * the PipedOutputStream to connect to. * @param pipeSize * the size of the buffer. * @throws IOException * if an I/O error occurs. * @throws IllegalArgumentException * if pipeSize is less than or equal to zero. * @since 1.6 */ public PipedInputStream(PipedOutputStream outJ, int pipeSize) : this(pipeSize) { connect(outJ); }
/* * Constructs a new PipedInputStream connected to the PipedOutputStream * <code>out</code> and uses the specified buffer size. Any data written * to the output stream can be read from this input stream. * * @param out * the PipedOutputStream to connect to. * @param pipeSize * the size of the buffer. * @throws IOException * if an I/O error occurs. * @throws IllegalArgumentException * if pipeSize is less than or equal to zero. * @since 1.6 */ public PipedInputStream(PipedOutputStream outJ, int pipeSize) ://throws IOException { this(pipeSize) { connect(outJ); }
/* * Constructs a new {@code PipedInputStream} connected to the * {@link PipedOutputStream} {@code out}. Any data written to the output * stream can be read from the this input stream. * * @param out * the piped output stream to connect to. * @throws IOException * if this stream or {@code out} are already connected. */ public PipedInputStream(PipedOutputStream outJ) {// throws IOException { connect(outJ); }
/* * Connects this {@code PipedInputStream} to a {@link PipedOutputStream}. * Any data written to the output stream becomes readable in this input * stream. * * @param src * the source output stream. * @throws IOException * if either stream is already connected. */ public void connect(PipedOutputStream src) {//throws IOException { src.connect(this); }