| Home >> All >> com >> memoire >> [ mst Javadoc ] |
com.memoire.mst: Javadoc index of package com.memoire.mst.
Package Samples:
com.memoire.mst
Classes:
MstXmlParser: Parse XML documents and return parse events through call-backs. You need to define a class implementing the MstXmlHandler interface: an object belonging to this class will receive the callbacks for the events. (As an alternative to implementing the full MstXmlHandler interface, you can simply extend the MstHandlerBase convenience class.) Usage (assuming that MyHandler is your implementation of the MstXmlHandler interface): MstXmlHandler handler = new MyHandler(); MstXmlParser parser = new MstXmlParser(); parser.setHandler(handler); try { parser.parse("http://www.host.com/doc.xml", null); } catch ...
MstHandlerBase: Convenience base class for AElfred handlers. This base class implements the MstXmlHandler 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: public class MyHandler extends MstHandlerBase { public void charData (char ch[], int start, int length) { System.out.println("Data: " + new String (ch, start, length)); } } This class is optional, but if ...
MstXmlHandler: 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 MstHandlerBase 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.
MstXmlException: 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 MstHandlerBase class. Note that the core Ælfred classes do not use this exception.
| Home | Contact Us | Privacy Policy | Terms of Service |