Code example for CountingOutputStream

Methods: flush

0
 
    @Override 
    public void flush() 
            throws IOExceptioncountingOutputStream.flush();
    } 
 
    @Override 
    public void close() 
            throws IOExceptioncountingOutputStream.close();
    } 
 
    @Override 
    public void reset() 
    { 
        throw new UnsupportedOperationException("OutputStream can not be reset");
    }