private class OsmChangesetParser.Parser extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
private ChangesetDiscussionComment |
comment
The current comment
|
private Changeset |
current
The current changeset
|
private Locator |
locator |
private StringBuilder |
text
The current comment text
|
Modifier | Constructor and Description |
---|---|
private |
Parser() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
protected User |
createUser(Attributes atts) |
void |
endElement(String uri,
String localName,
String qName) |
protected void |
parseChangesetAttributes(Attributes atts) |
private void |
parseCommentAttributes(Attributes atts) |
private int |
parseNumericAttribute(String value,
int minAllowed) |
void |
setDocumentLocator(Locator locator) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
protected void |
throwException(String msg) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
private ChangesetDiscussionComment comment
private StringBuilder text
private Parser()
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
protected void throwException(String msg) throws XmlParsingException
XmlParsingException
protected void parseChangesetAttributes(Attributes atts) throws XmlParsingException
XmlParsingException
private void parseCommentAttributes(Attributes atts) throws XmlParsingException
XmlParsingException
private int parseNumericAttribute(String value, int minAllowed) throws XmlParsingException
XmlParsingException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
protected User createUser(Attributes atts) throws XmlParsingException
XmlParsingException