Here you can find the source of getAttribute(String key, Attributes attributes, Map
public static String getAttribute(String key, Attributes attributes, Map<String, Integer> tagCache)
//package com.java2s; //License from project: Open Source License import java.util.Map; import org.xml.sax.Attributes; public class Main { public static String getAttribute(String key, Attributes attributes, Map<String, Integer> tagCache) { Integer value = tagCache.get(key); if (null == value || value.intValue() == -1) { return null; } else {/*from www. j a v a2 s .c om*/ return attributes.getValue(value); } } }