Code example for PipedOutputStream

Methods: closeflush

0
   } 
    
   @After 
   public void after() throws IOException 
   { 
      m_output.flush();
      m_output.close();
      m_output = null;
 
      Assert.assertEquals( 0, m_input.available());
      Assert.assertEquals(-1, m_input.peek());
      Assert.assertEquals(-1, m_input.read());
 
      m_input.close();
      m_input = null;
   } 
    
   @Test(expected = NullPointerException.class) 
   public void passNullPointerToConstructor() throws IOException 
   { 
Contextual code suggestions in your IDE  Get Codota for Java