Java Jar Usage isSet(Attributes attributes, String name)

Here you can find the source of isSet(Attributes attributes, String name)

Description

is Set

License

Open Source License

Declaration

private static boolean isSet(Attributes attributes, String name) 

Method Source Code

//package com.java2s;

import java.util.jar.Attributes;

public class Main {
    private static boolean isSet(Attributes attributes, String name) {
        boolean isSet = false;
        String s = attributes.getValue(name);
        if (s != null) {
            s = s.trim();//from  w  w  w. j a  v  a  2 s. c o m
            isSet = s.equalsIgnoreCase("true");
        }
        return isSet;
    }
}

Related

  1. getInfo(String jarFileName)
  2. getJarInFileList(JarFile jarFile, String targetPath)
  3. getMatchingResourcesFromJar(JarFile jarFile, String suffix)
  4. getSortedAttributes(Attributes mainAttributes)
  5. getSortedJarEntries(JarFile jarFile)
  6. listFiles(JarFile jarFile, String path)
  7. process(Object obj)
  8. processJarFile(String f)
  9. recordFactoryDefault(String className, Attributes attributes)