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