public void zipEntry(ZipEntry entry, InputStream from) throws IOException {
    if (entry.isDirectory()) {
      addDirs(entry.getName(), true);
    }
    else {
      zipEntry(entry.getName(), from);
    }
  }
public void zipEntry(ZipEntry entry, InputStream from)