Java Jar Usage getAttribute(String name, String value)

Here you can find the source of getAttribute(String name, String value)

Description

get Attribute

License

Open Source License

Declaration

public static Attributes getAttribute(String name, String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.jar.Attributes;

public class Main {
    public static Attributes getAttribute(String name, String value) {
        Attributes a = new Attributes();
        Attributes.Name attribName = new Attributes.Name(name);
        a.put(attribName, value);/*from w  w  w  .  j  a va2s.  c  o m*/
        return a;
    }
}

Related

  1. containsClass(JarFile jarFile, String agentRunnerClassName)
  2. containsClass(JarFile jarFile, String classFilePath)
  3. convertAttributes(Attributes attributes)
  4. createPacker()
  5. findClassesByJar(String packageName, JarFile jar, final boolean recursive, Set> classes)
  6. getClassNameByJar(String jarPath, boolean childPackage)
  7. getEntriesName(String jarFileName)
  8. getFileNamesWithSuffixForJarFile(JarFile jar, String suffix)
  9. getInfo(String jarFileName)