Code example for Stack

0
public class WebXmlContextParameterParser extends DefaultHandler {
 
    /** 
     * Used to maintain a list of elements up to the root of the XML tree 
     */ 
    private final Stack<String> stack = new Stack<String>();
 
    /** 
     * All context parameters parsed from the file 
     */ 
    private final Map<String, String> entries = new HashMap<String, String>();
 
    /** 
     * The current name and value 
     */ 
    private String currentName;
    private String currentValue;
 
    /** 
     * Parses the supplied web.xml {@link InputStream}. 
     *