All pastes #461259 Raw Edit

rvsjoen

public java v1 · immutable
#461259 ·published 2007-04-27 16:25 UTC
rendered paste body
import org.xml.sax.Attributes;import org.xml.sax.SAXException;import org.xml.sax.helpers.DefaultHandler;public class Treff extends DefaultHandler {	public void startElement(String nsURI, String lName, String qName, Attributes atts)               throws SAXException {	      System.out.println("Got start tag");	}}private void parseResults(String s) {	try {		SAXParser p = SAXParserFactory.newInstance().newSAXParser();		p.parse(new InputSource(s), new Treff());	} catch (Exception e) {		e.printStackTrace();	}}Running with storage root temp.DefaultColorPhone43Running with locale: Norwegian (Bokmål)_Norway.1252org.xml.sax.SAXParseException: 	at org.xml.sax.helpers.DefaultHandler.fatalError(+1)	at com.sun.ukit.jaxp.Parser.panic(+18)	at com.sun.ukit.jaxp.Parser.setinp(+186)	at com.sun.ukit.jaxp.Parser.parse(+42)	at rvs.tod075.oving4.Dictionary.parseResults(+26)	at rvs.tod075.oving4.Dictionary.startApp(+16)	at javax.microedition.midlet.MIDletProxy.startApp(+7)	at com.sun.midp.midlet.Scheduler.schedule(+270)	at com.sun.midp.main.Main.runLocalClass(+28)	at com.sun.midp.main.Main.main(+116)Execution completed.3419605 bytecodes executed197 thread switches1649 classes in the system (including system classes)18032 dynamic objects allocated (541024 bytes)4 garbage collections (458936 bytes collected)