public class UserInfoParser extends XmlParser implements ApiResponseReader<java.lang.Void>
| Modifier and Type | Field and Description |
|---|---|
protected Handler<UserInfo> |
handler |
protected UserInfo |
user |
| Constructor and Description |
|---|
UserInfoParser(Handler<UserInfo> handler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createUser(long id,
java.lang.String name) |
protected void |
onEndElement() |
protected void |
onStartElement() |
java.lang.Void |
parse(java.io.InputStream in)
Called when the input stream is available.
|
doParse, getAttribute, getBooleanAttribute, getByteAttribute, getDoubleAttribute, getFloatAttribute, getIntAttribute, getLongAttribute, getName, getParentName, getText, onTextNodepublic java.lang.Void parse(java.io.InputStream in)
throws java.io.IOException
ApiResponseReaderparse in interface ApiResponseReader<java.lang.Void>in - the input stream from the server responsejava.io.IOExceptionprotected void createUser(long id,
java.lang.String name)
protected void onStartElement()
throws java.text.ParseException
onStartElement in class XmlParserjava.text.ParseExceptionprotected void onEndElement()
onEndElement in class XmlParser