Code example for JarEntry

Methods: setSize

0
        } 
    } 
 
    private static void writeJarredFile(JarOutputStream jos, String file, String suffix, byte[] bytes) {
        String fileName = file.replace(".", "/") + "." + suffix;
        JarEntry ze = new JarEntry(fileName);
        try { 
            ze.setSize(bytes.length);
            jos.putNextEntry(ze);
            jos.write(bytes);
            jos.closeEntry();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    /** 
     * (pre)load class name using classData for the definition. 
     * 
     * @param name 
Connect your IDE to all the code out there  Get Codota for Java