| Home >> All >> com >> microstar >> [ xml Javadoc ] |
com.microstar.xml: Javadoc index of package com.microstar.xml.
Package Samples:
com.microstar.xml
Classes:
HandlerBase: Convenience base class for AElfred handlers. This base class implements the XmlHandler interface with (mostly empty) default handlers. You are not required to use this, but if you need to handle only a few events, you might find it convenient to extend this class rather than implementing the entire interface. This example overrides only the charData method, using the defaults for the others: import com.microstar.xml.HandlerBase; public class MyHandler extends HandlerBase { public void charData (char ch[], int start, int length) { System.out.println("Data: " + new String (ch, start, length)); } ...
XmlParser: Parse XML documents and return parse events through call-backs. You need to define a class implementing the XmlHandler interface: an object belonging to this class will receive the callbacks for the events. (As an alternative to implementing the full XmlHandler interface, you can simply extend the HandlerBase convenience class.) Usage (assuming that MyHandler is your implementation of the XmlHandler interface): XmlHandler handler = new MyHandler(); XmlParser parser = new XmlParser(); parser.setHandler(handler); try { parser.parse("http://www.host.com/doc.xml", null); } catch (Exception e) { [do ...
XmlHandler: XML Processing Interface. Whenever you parse an XML document, you must provide an object from a class that implements this interface to receive the parsing events. If you do not want to implement this entire interface, you can extend the HandlerBase convenience class and then implement only what you need. If you are using SAX, you should implement the SAX handler interfaces rather than this one.
XmlException: Convenience exception class for reporting XML parsing errors. This is an exception class that you can use to encapsulate all of the information from Ælfred's error callback. This is not necessary for routine use of Ælfred, but it is used by the optional HandlerBase class. Note that the core Ælfred classes do not use this exception.
| Home | Contact Us | Privacy Policy | Terms of Service |