if (shortName.lastIndexOf(".") > -1) { shortName = shortName.substring(0, shortName.lastIndexOf(".")); }
int lastDot = shortName.lastIndexOf("."); baseName = (lastDot == -1) ? shortName : shortName.substring(0, lastDot);
    protected ZipResource(File zipfile, ZipEntry zipentry, ZipRepository repository) {        this.zipentry = zipentry;        this.zipfile = zipfile;        this.repository = repository;        String entryname = zipentry.getName();        int lastSlash = entryname.lastIndexOf('/');        shortName = entryname.substring(lastSlash + 1);        name = new StringBuffer(repository.getName()).append('/')                .append(shortName).toString();        // cut off extension from short name        if (shortName.lastIndexOf(".") > -1) {            shortName = shortName.substring(0, shortName.lastIndexOf("."));        }    }