Code example for PipedInputStream

Methods: connect

0
		 
	{				 
		String	get = "/download/" + getURL().toString().substring( 7 ) + " HTTP/1.0" + NL + NL;
		 
		PipedOutputStream 	pos = new PipedOutputStream();
		PipedInputStream 	pis = new PipedInputStream();
		 
		pis.connect( pos );
		 
		input_stream	= pis;
		output_stream 	= pos;
		 
		MagnetURIHandler.getSingleton().process( get, new ByteArrayInputStream(new byte[0]), pos );
	} 
	 
	public InputStream
	getInputStream() 
	 
		throws IOException 
	{		 
Experience pair programming with AI  Get Codota for Java