Here you can find the source of getAttribute(String name, String value)
public static Attributes getAttribute(String name, String value)
//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; } }