|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.twitterapime.parser.DefaultXMLHandler
com.twitterapime.rest.handler.DirectMessageHandler
public final class DirectMessageHandler
Handler class for parsing the XML Direct Message from Twitter API.
Field Summary |
---|
Fields inherited from class com.twitterapime.parser.DefaultXMLHandler |
---|
xmlPath |
Constructor Summary | |
---|---|
DirectMessageHandler()
|
Method Summary | |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Callback method called to notify the end of a element in the document. |
Tweet[] |
getParsedTweets()
Return the parsed tweets. |
void |
loadParsedTweet(Tweet dm,
int index)
Load the parsed values, from a given index, into the given tweet. |
void |
setSearchDeviceListener(SearchDeviceListener listener)
Set the search device listener object. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attrs)
Callback method called to notify the start of a element in the document. |
void |
text(java.lang.String text)
Callback method called to notify a string data inside an element. |
Methods inherited from class com.twitterapime.parser.DefaultXMLHandler |
---|
endDocument, startDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectMessageHandler()
Method Detail |
---|
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, Attributes attrs) throws ParserException
XMLHandler
Callback method called to notify the start of a element in the document.
startElement
in interface XMLHandler
startElement
in class DefaultXMLHandler
namespaceURI
- URI.localName
- The local name.qName
- The qualified name.attrs
- The specified or defaulted attributes.
ParserException
- If a parser error occurs.DefaultXMLHandler.startElement(java.lang.String, java.lang.String, java.lang.String, com.twitterapime.parser.Attributes)
public void text(java.lang.String text) throws ParserException
XMLHandler
Callback method called to notify a string data inside an element.
text
in interface XMLHandler
text
in class DefaultXMLHandler
text
- String data.
ParserException
- If a parser error occurs.DefaultXMLHandler.text(java.lang.String)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws ParserException
XMLHandler
Callback method called to notify the end of a element in the document.
endElement
in interface XMLHandler
endElement
in class DefaultXMLHandler
namespaceURI
- URI.localName
- The local name.qName
- The qualified name.
ParserException
- If a parser error occurs.DefaultXMLHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public Tweet[] getParsedTweets()
Return the parsed tweets.
public void loadParsedTweet(Tweet dm, int index)
Load the parsed values, from a given index, into the given tweet.
dm
- Tweet to be loaded.index
- Tweet's index which values will be copied into given tweet.public void setSearchDeviceListener(SearchDeviceListener listener)
Set the search device listener object.
listener
- Listener object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |