Code example for PipedOutputStream

Methods: close

0
    PReader reader;
 
    PipedOutputStream out;
 
    public void test_Constructor() { 
        out = new PipedOutputStream();
        assertNotNull(out);
        try { 
            out.close();
        } catch (IOException e) {
            fail("Unexpeceted IOException.");
        } 
    } 
 
    public void test_ConstructorLjava_io_PipedInputStream() throws IOException { 
        // Test for method java.io.PipedOutputStream(java.io.PipedInputStream) 
 
        try { 
            out = new PipedOutputStream(new PipedInputStream());
            out.write('b');