filter = new CheckedOutputStream (new DeflaterOutputStream (out, def), new CRC32 ());
sum.reset();
  public void putNextEntry (ZipEntry entry) throws IOException  {    if (current != null)      closeEntry ();    if (entry.method < 0 )      entry.method = method;    if (entry.method == STORED)      {	if (entry.getSize() == -1 || entry.getCrc() == -1)	  throw new ZipException ("required entry not set");	// Just in case.	entry.compressedSize = entry.getSize();      }    write_entry (entry, true);    current = entry;    int compr = (method == STORED) ? Deflater.NO_COMPRESSION : level;    def.reset();    def.setLevel(compr);    filter = new CheckedOutputStream (new DeflaterOutputStream (out, def),				      new CRC32 ());  }