Code example for ZipEntry

0
            ZipOutputStream target,
            Properties properties) throws IOException {
        assert path != null;
        assert target != null;
        assert properties != null;
        ZipEntry entry = new ZipEntry(path);
        target.putNextEntry(entry);
        properties.store(target, path);
    } 
 
    private Properties loadProperties(String path) throws IOException {
        assert path != null;
        Properties result = new Properties();
        InputStream input = open(path);
        try { 
            result.load(input);
        } finally { 
            input.close();
        } 
        return result;
Connect your IDE to all the code out there  Get Codota for Java