Code example for PipedInputStream

Methods: connect

0
		} 
		 
		public void connect(PipedInputStream otherInput, PipedOutputStream otherOutput)
		throws IOException 
		{ 
			_pipeInput.connect(otherOutput);
			_pipeOutput.connect(otherInput);
		} 
		 
		protected int read() 
		throws IOException 
		{ 
			return _pipeInput.read();
		} 
		 
		protected void write(int data)
		throws IOException 
		{ 
			_pipeOutput.write(data);
		}