Code example for PipedInputStream

Methods: read

0
	} 
 
	@Override 
	public int read(byte[] b, int off, int len) throws IOException {
		// TODO Auto-generated method stub 
		return pi.read(b, off, len);
	} 
 
	@Override 
	public int available() throws IOException { 
		return pi.available();
	} 
 
	protected void setToRead(byte []b) throws IOException {
		po.write(b);
	} 
	 
 
	@Override 
	public void close() throws IOException { 
		pi.close();