Code example for PipedInputStream

Methods: available

0
	/** 
	 * @tests java.io.PipedInputStream#PipedInputStream(java.io.PipedOutputStream) 
	 */ 
	public void test_ConstructorLjava_io_PipedOutputStream() throws Exception { 
        // Test for method java.io.PipedInputStream(java.io.PipedOutputStream) 
        pis = new PipedInputStream(new PipedOutputStream());
        pis.available();
    } 
 
 
    /** 
     * @test java.io.PipedInputStream#read() 
     */ 
    public void test_readException() throws IOException { 
        pis = new PipedInputStream();
        pos = new PipedOutputStream();
 
        try { 
            pis.connect(pos);
            t = new Thread(pw = new PWriter(pos, 1000));
            t.start();