Code example for Attributes

Methods: putValue, x 1

            main.putValue("Created-By", "1.0 (Android)");
            mBase64Encoder = new BASE64Encoder();
            mMessageDigest = MessageDigest.getInstance(DIGEST_ALGORITHM);
     * Writes a new {@link File} into the archive. 
     * @param inputFile the {@link File} to write. 
     * @param jarPath the filepath inside the archive. 
     * @throws IOException 
    public void writeFile(File inputFile, String jarPath) throws IOException {
        // Get an input stream on the file. 
        FileInputStream fis = new FileInputStream(inputFile);
        try { 
            // create the zip entry 
            JarEntry entry = new JarEntry(jarPath);
Connect your IDE to all the code out there  Get Codota for Java