| java.lang.Object org.xml.sax.HandlerBase uk.org.ponder.saxalizer.SAXalizerHelper
SAXalizerHelper | public class SAXalizerHelper extends HandlerBase (Code) | | This useful helper class can be used if the XML
root tag itself is required to be the root of the deserialised
object tree. In this case, we can avoid direct use of the SAXalizer and
the SAX API itself, and merely pass in an InputStream attached to the
XML document. The SAXalizerHelper class parses the stream and
returns the single object corresponding to the XML root node,
at the head of the tree of deserialised Java objects.
|
SAXalizerHelper | public SAXalizerHelper()(Code) | | |
produceSubtree | public Object produceSubtree(Object rootobj, InputStream stream) throws SAXException(Code) | | This method parses a stream attached to an XML document, and returns
a deserialised object tree corresponding to its root node.
Parameters: rootobj - The required root object to receive the SAXalized subtree. Thisclass must implement (at least) the SAXalizable interface. Parameters: stream - A stream attached to an XML document.This stream WILL be closed by this call. exception: SAXException - if the stream could not be parsed as XML. An object representing the XML root node. |
setDocumentLocator | public void setDocumentLocator(Locator l)(Code) | | |
startElement | public void startElement(String tagname, AttributeList attrlist) throws SAXException(Code) | | Implements the DocumentHandler interface. This method is only implemented to
intercept the very first opening tag for the root object, at which point
handling is forwarded to the internal SAXalizer object.
Parameters: tagname - The tag name for the element just seen in the SAX stream. Parameters: attrlist - The attribute list of the tag just seen in the SAX stream. exception: SAXException - If any exception requires to be propagated from thisinterface. |
Methods inherited from org.xml.sax.HandlerBase | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String name) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId)(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String name, AttributeList attributes) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|