Java Jar Usage recordFactoryDefault(String className, Attributes attributes)

Here you can find the source of recordFactoryDefault(String className, Attributes attributes)

Description

record Factory Default

License

Open Source License

Declaration

private static void recordFactoryDefault(String className, Attributes attributes) 

Method Source Code

//package com.java2s;

import java.util.jar.Attributes;

public class Main {
    private static String defaultFactoryClassName;

    private static void recordFactoryDefault(String className, Attributes attributes) {
        if (isSet(attributes, "Default-Factory")) {
            defaultFactoryClassName = className;
        }/*from  w  w w .  ja  va 2 s  .  c om*/
    }

    private static boolean isSet(Attributes attributes, String name) {
        boolean isSet = false;
        String s = attributes.getValue(name);
        if (s != null) {
            s = s.trim();
            isSet = s.equalsIgnoreCase("true");
        }
        return isSet;
    }
}

Related

  1. getSortedJarEntries(JarFile jarFile)
  2. isSet(Attributes attributes, String name)
  3. listFiles(JarFile jarFile, String path)
  4. process(Object obj)
  5. processJarFile(String f)
  6. safeClose(JarFile jf)
  7. scanJarPackageClass(List> classes, String packageDirName, String packageName, JarFile jar, boolean recursive)