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) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningprotected HistoryOsmPrimitive currentPrimitive
protected org.xml.sax.Locator locator
public AbstractParser()
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerprotected abstract void throwException(java.lang.String message) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final long getMandatoryAttributeLong(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final java.lang.Long getAttributeLong(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final java.lang.Double getAttributeDouble(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final java.lang.String getMandatoryAttributeString(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected boolean getMandatoryAttributeBoolean(org.xml.sax.Attributes attr, java.lang.String name) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final HistoryOsmPrimitive createPrimitive(org.xml.sax.Attributes atts, OsmPrimitiveType type) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final void startNode(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final void startWay(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final void startRelation(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final void handleTag(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final void handleNodeReference(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void handleMember(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected final boolean doStartElement(java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException