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, warningprivate ChangesetDiscussionComment comment
private StringBuilder text
private Parser()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerprotected void throwException(String msg) throws XmlParsingException
XmlParsingExceptionprotected void parseChangesetAttributes(Attributes atts) throws XmlParsingException
XmlParsingExceptionprivate void parseCommentAttributes(Attributes atts) throws XmlParsingException
XmlParsingExceptionprivate int parseNumericAttribute(String value, int minAllowed) throws XmlParsingException
XmlParsingExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch, int start, int length) throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionprotected User createUser(Attributes atts) throws XmlParsingException
XmlParsingException