Class OsmChangeHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openstreetmap.osmosis.xml.v0_6.impl.OsmChangeHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
This class is a SAX default handler for processing OSM Change XML files. It
utilises a tree of element processors to extract the data from the xml
structure.
-
Constructor Summary
ConstructorsConstructorDescriptionOsmChangeHandler(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink, boolean enableDateParsing) -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String uri, String localName, String qName) Ends processing of the current element.voidstartElement(String uri, String localName, String qName, Attributes attributes) Begins processing of a new element.Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
OsmChangeHandler
public OsmChangeHandler(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink, boolean enableDateParsing) - Parameters:
changeSink- The changeSink to write data to.enableDateParsing- If true, dates will be parsed from xml data, else the current date will be used thus saving parsing time.
-
-
Method Details
-
startElement
Begins processing of a new element.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- The uri.localName- The localName.qName- The qName.attributes- The attributes.
-
endElement
Ends processing of the current element.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
uri- The uri.localName- The localName.qName- The qName.
-