Code example for Stack

Methods: clear

0
	public void setMarkovObject(MarkovSentence markov) {
		mMarkov = markov;
	} 
	 
	public void startDocument() { 
		mTextStack.clear();
		mWorkingText = new String();
	} 
	 
	public void endDocument() { 
		 
	} 
	 
	public void startElement(String uri, String qname, String lname, Attributes atts) {
		mTextStack.push(mWorkingText);
		mWorkingText = new String();
	} 
	 
	public void endElement(String uri, String qname, String lname) {
		if(mMarkov != null && lname.compareTo("text") == 0) {
			mMarkov.parseSentence(mWorkingText);