public abstract class AbstractParser extends org.xml.sax.helpers.DefaultHandler
OsmChangesetContentParser
and OsmHistoryReader
internal parsers.Modifier and Type | Field and Description |
---|---|
protected HistoryOsmPrimitive |
currentPrimitive
the current primitive to be read
|
protected org.xml.sax.Locator |
locator |
Constructor and Description |
---|
AbstractParser() |
Modifier and Type | Method and Description |
---|---|
protected HistoryOsmPrimitive |
createPrimitive(org.xml.sax.Attributes atts,
OsmPrimitiveType type) |
protected boolean |
doStartElement(java.lang.String qName,
org.xml.sax.Attributes atts) |
protected java.lang.Double |
getAttributeDouble(org.xml.sax.Attributes attr,
java.lang.String name) |
protected java.lang.Long |
getAttributeLong(org.xml.sax.Attributes attr,
java.lang.String name) |
protected boolean |
getMandatoryAttributeBoolean(org.xml.sax.Attributes attr,
java.lang.String name) |
protected long |
getMandatoryAttributeLong(org.xml.sax.Attributes attr,
java.lang.String name) |
protected java.lang.String |
getMandatoryAttributeString(org.xml.sax.Attributes attr,
java.lang.String name) |
protected void |
handleMember(org.xml.sax.Attributes atts) |
protected void |
handleNodeReference(org.xml.sax.Attributes atts) |
protected void |
handleTag(org.xml.sax.Attributes atts) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
protected void |
startNode(org.xml.sax.Attributes atts) |
protected void |
startRelation(org.xml.sax.Attributes atts) |
protected void |
startWay(org.xml.sax.Attributes atts) |
protected abstract void |
throwException(java.lang.String message) |
protected abstract void |
throwException(java.lang.String message,
java.lang.Exception e) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected HistoryOsmPrimitive currentPrimitive
protected org.xml.sax.Locator locator
public AbstractParser()
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
protected abstract void throwException(java.lang.String message) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected abstract void throwException(java.lang.String message, java.lang.Exception e) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final long getMandatoryAttributeLong(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Long getAttributeLong(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.Double getAttributeDouble(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final java.lang.String getMandatoryAttributeString(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected boolean getMandatoryAttributeBoolean(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final HistoryOsmPrimitive createPrimitive(org.xml.sax.Attributes atts, OsmPrimitiveType type) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void startNode(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void startWay(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void startRelation(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void handleTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final void handleNodeReference(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleMember(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected final boolean doStartElement(java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException