Package org.openstreetmap.josm.io
Class OsmHistoryReader.Parser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.openstreetmap.josm.io.AbstractParser
-
- org.openstreetmap.josm.io.OsmHistoryReader.Parser
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- OsmHistoryReader
private class OsmHistoryReader.Parser extends AbstractParser
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.io.AbstractParser
currentPrimitive, locator, useAnonymousUser
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Parser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(String uri, String localName, String qName)
protected String
getCurrentPosition()
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
protected void
throwException(String message)
protected void
throwException(String message, Exception e)
-
Methods inherited from class org.openstreetmap.josm.io.AbstractParser
createPrimitive, doStartElement, getAttributeDouble, getAttributeLong, getMandatoryAttributeBoolean, getMandatoryAttributeLong, getMandatoryAttributeString, handleMember, handleNodeReference, handleTag, setDocumentLocator, startNode, startRelation, startWay
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
Parser
private Parser()
-
-
Method Detail
-
getCurrentPosition
protected String getCurrentPosition()
-
throwException
protected void throwException(String message) throws SAXException
- Specified by:
throwException
in classAbstractParser
- Throws:
SAXException
-
throwException
protected void throwException(String message, Exception e) throws SAXException
- Specified by:
throwException
in classAbstractParser
- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
-