Code example for PipedOutputStream

Methods: close

0
	private ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream() {
		public void close() { 
			keepRunning = false; 
			try { 
				super.close(); 
				pipedOS.close(); 
			} catch (IOException e) { 
 
				System.exit(1); 
			} 
		} 
	}; 
 
	private PipedInputStream pipedIS = new PipedInputStream() {
		public void close() { 
			keepRunning = false; 
			try { 
				super.close(); 
			} catch (IOException e) { 
 
				System.exit(1);