|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xolite.utils.XMLSkipper
public class XMLSkipper
XMLSerializable that allow to ignore a whole complex XML element during parsing.
XMLEventParser
,
XMLSerializer
Constructor Summary | |
---|---|
XMLSkipper()
|
Method Summary | |
---|---|
void |
endElement(String uri,
String localName,
XMLEventParser parser)
Receive notification of the end of an element. |
void |
serialize(XMLSerializer serializer)
This object is not intended for serialization as it does not keep its XML content while parsing. |
void |
startElement(String uri,
String localName,
XMLEventParser parser)
Receive notification of the start of an element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLSkipper()
Method Detail |
---|
public void startElement(String uri, String localName, XMLEventParser parser) throws XMLParseException
XMLSerializable
startElement
in interface XMLSerializable
uri
- The started element namespace URI.localName
- The started element local name (= name without the namespace prefix) .parser
- The current XML event parser. From this parser you can get the attributes of the started element, the SAX
Locator, the defined namespace prefix mappings.
XMLParseException
- Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri, String localName, XMLEventParser parser) throws XMLParseException
XMLSerializable
endElement
in interface XMLSerializable
uri
- The ended element namespace URI.localName
- The ended element local name (= name without the namespace prefix) .parser
- The current XML event parser. From this parser you can get SAX Locator or the text content of the ended
element.
XMLParseException
- Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void serialize(XMLSerializer serializer) throws XMLSerializeException
serialize
in interface XMLSerializable
serializer
- The object implementing the actual serialization.
XMLSerializeException
- if something fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |