Code example for CountingOutputStream

Methods: close

0
 
    @Override 
    public void close() 
            throws IOExceptioncountingOutputStream.close();
    } 
 
    @Override 
    public void reset() 
    { 
        throw new UnsupportedOperationException("OutputStream can not be reset");
    } 
 
    @Override 
    public int size() 
    { 
        return Ints.checkedCast(countingOutputStream.getCount());
    }