Code example for PipedWriter

Methods: closeflush

0
     * Regression HARMONY-6293 
     */ 
    public void test_flushAfterClose() throws Exception { 
    	 
        PipedReader pr = new PipedReader();
        pw = new PipedWriter(pr);
    	pw.close();
    	try { 
            pw.flush();
            fail("should throw IOException");
        } catch (IOException e) {
            // expected 
        } 
    	 
        pr = new PipedReader();
        pw = new PipedWriter(pr);
        pr.close();
	 
        try { 
            pw.flush();
Stop searching for code, let great code find you!  Add Codota to your java IDE