Code example for Stack

0
		} 
	} 
 
	private void pushTag(String ltag, Attributes attributes) {
		if (!mStyleStack.containsKey(ltag)) {
			mStyleStack.put(ltag, new Stack<TagMarker>());
		} 
		mStyleStack.get(ltag).push(new TagMarker(mSB.length(), attributes));
	} 
 
	private TagMarker popTag(SpannableStringBuilder text, String ltag) {
		if (!mStyleStack.containsKey(ltag)) {
			Util.e("Found an unmatched closing tag " + ltag + "!");
			return null; 
		} 
		return mStyleStack.get(ltag).pop();
	} 
 
	private static final HashMap<String, Boolean> SIMPLE_TAGS = buildSimpleTags();
	private static final HashMap<String, Boolean> IGNORED_TAGS = buildIgnoredTags();