com.dyuproject.util.xml
Class SimpleHandler
java.lang.Object
com.dyuproject.util.xml.SimpleHandler
- All Implemented Interfaces:
- LazyHandler
public class SimpleHandler
- extends Object
- implements LazyHandler
Simple Handler to generate a root node with all its child nodes.
- Author:
- David Yu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHandler
public SimpleHandler()
getNode
public Node getNode()
rootElement
public boolean rootElement(String name,
String namespace)
- Specified by:
rootElement
in interface LazyHandler
startElement
public boolean startElement(String name,
String namespace)
- Specified by:
startElement
in interface LazyHandler
endElement
public boolean endElement()
- Specified by:
endElement
in interface LazyHandler
attribute
public void attribute(String name,
String value)
- Specified by:
attribute
in interface LazyHandler
characters
public void characters(char[] data,
int start,
int length)
- Specified by:
characters
in interface LazyHandler
Copyright © 2013. All Rights Reserved.