code: public long getLength(String path)
    {
      try {
        ZipEntry entry = getZipEntry(path);
  
        long length = entry != null ? entry.getSize() : -1;
        
        return length;
      } catch (IOException e) {
        log.log(Level.FINE, e.toString(), e);
        
        return -1;
      }
    }
docs: Returns the length of the entry in the jar file.
  
  @param path full path to the jar entry
  @return the length of the entry