@ Override public int read ( byte [ ] buffer , int offset , int length ) throws IOException { int sublen = getDelegate ( ) . read ( buffer , offset , length ) ; if ( sublen > 0 ) { logStream ( ) . write ( buffer , offset , sublen ) ; } return sublen ; }
Reads the next chunk from the stream .