import org.xml.sax.*;
import org.xml.sax.helpers.*;
import java.io.*;
import java.util.*;
/**
 * ChangedParser is SAX XML Parser  used for parsing changed messages.
 */
public class ChangedParser extends XParser {
	/**
	 * The time changed
	 * */
	int time = 0;
	/**
	 * used when a tag closes
	 * */
	public void endElement( String namespaceURI, String localName, String qName ) throws SAXException{
		super.endElement(namespaceURI,localName,qName);
		String value = contents.toString().trim();
		if ( localName.equals("time")) {
			time = parseInt(value);
		}
	}
	/**
	 * gets the changed time
	 * */
	int getTime() {
		return time;
	}
}
