/** * Construct a new <code>LeadPipeInputStream</code> * with the specified buffer size. * @param size the size of the circular buffer. */ public LeadPipeInputStream(int size) { super(); setBufferSize(size); }
/** * Construct a new <code>LeadPipeInputStream</code> to pull * from the specified <code>PipedOutputStream</code>, using a * circular buffer of the specified size. * @param src the <code>PipedOutputStream</code> source. * @param size the size of the circular buffer. * @throws IOException if there is an error. */ public LeadPipeInputStream(PipedOutputStream src, int size) throws IOException { super(src); setBufferSize(size); }