Code example for Stack

0
	protected StringBuffer contentBuf; 
 
	public HandlerState(Feed feed) { 
		this.feed = feed; 
		items = new ArrayList<FeedItem>(); 
		tagstack = new Stack<SyndElement>(); 
		namespaces = new HashMap<String, Namespace>(); 
		defaultNamespaces = new Stack<Namespace>(); 
	} 
 
	public Feed getFeed() { 
		return feed; 
	} 
 
	public ArrayList<FeedItem> getItems() { 
		return items; 
	} 
 
	public FeedItem getCurrentItem() { 
		return currentItem;