@Override public void write(byte[] buffer,int offset,int byteCount) throws IOException {
  Arrays.checkOffsetAndCount(buffer.length,offset,byteCount);
  if (currentEntry == null) {
    throw new ZipException("No active entry");
  }
  if (currentEntry.getMethod() == STORED) {
    out.write(buffer,offset,byteCount);
  }
 else {
    super.write(buffer,offset,byteCount);
  }
  crc.update(buffer,offset,byteCount);
}

@ Override public void write ( byte [ ] buffer , int offset , int byteCount ) throws IOException { Arrays . checkOffsetAndCount ( buffer . length , offset , byteCount ) ; if ( currentEntry == null ) { throw new ZipException ( "No active entry" ) ; } if ( currentEntry . getMethod ( ) == STORED ) { out . write ( buffer , offset , byteCount ) ; } else { super . write ( buffer , offset , byteCount ) ; } crc . update ( buffer , offset , byteCount ) ; }
writes data for the current entry to the underlying stream .
