Code example for JarEntry

Methods: getSize

0
    { 
        if (isDirectory()) 
            return -1; 
 
        if (_entry!=null)
            return _entry.getSize();
         
        return -1; 
    } 
     
    /* ------------------------------------------------------------ */ 
    /** Encode according to this resource type. 
     * File URIs are not encoded. 
     * @param uri URI to encode. 
     * @return The uri unchanged. 
     */ 
    public String encode(String uri)
    { 
        return uri;
    }