Code example for JarEntry

Methods: getSizegetTime

0
      JarEntry jarEntry = contentJarFile.getJarEntry(_fullPath);
 
      if(jarEntry == null)
        throw new ResourceNotFoundException(toURI()); 
 
      return new StaticInfo(jarEntry.getSize(),
                            jarEntry.getTime());
    } 
    finally 
    { 
      contentJarFile.close();
    } 
  } 
 
  /** 
   * Returns <code>true</code> if this resource was modified since the time provided. A trivial 
   * implementation is <code>return lastModified() &gt; time</code>, but various implementations can 
   * provide better alternatives. If the resource does not exsit then it returns 
   * <code>false</code>. 
   *