private class NoteReader.Parser extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.StringBuilder |
buffer |
private java.util.Date |
commentCreateDate |
private boolean |
commentIsNew |
private java.lang.String |
commentText |
private long |
commentUid |
private java.lang.String |
commentUsername |
private NoteComment.Action |
noteAction |
private java.util.List<Note> |
notes |
private NoteReader.NoteParseMode |
parseMode |
private Note |
thisNote |
| Modifier | Constructor and Description |
|---|---|
private |
Parser() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs) |
private NoteReader.NoteParseMode parseMode
private final java.lang.StringBuilder buffer
private long commentUid
private java.lang.String commentUsername
private NoteComment.Action noteAction
private java.util.Date commentCreateDate
private boolean commentIsNew
private java.lang.String commentText
private Parser()
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic void endDocument() throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException