com.twitterapime.rest.handler
Class AccountHandler

java.lang.Object
  extended by com.twitterapime.parser.DefaultXMLHandler
      extended by com.twitterapime.rest.handler.AccountHandler
All Implemented Interfaces:
Handler, XMLHandler

public final class AccountHandler
extends DefaultXMLHandler

Handler class for parsing the account's XML results from Twitter API.

Since:
1.2
Version:
1.1
Author:
Ernandes Mourao Junior (ernandes@gmail.com)

Field Summary
 
Fields inherited from class com.twitterapime.parser.DefaultXMLHandler
xmlPath
 
Constructor Summary
AccountHandler()
           
 
Method Summary
 void endDocument()
           Callback method called to notify the end of the document.
 UserAccount getParsedUserAccount()
           Return the parsed user account.
 void loadParsedUserAccount(UserAccount user)
           Load the parsed values into the given UserAccount.
 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
endElement, startDocument, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountHandler

public AccountHandler()
Method Detail

text

public void text(java.lang.String text)
          throws ParserException
Description copied from interface: XMLHandler

Callback method called to notify a string data inside an element.

Specified by:
text in interface XMLHandler
Overrides:
text in class DefaultXMLHandler
Parameters:
text - String data.
Throws:
ParserException - If a parser error occurs.
See Also:
DefaultXMLHandler.text(java.lang.String)

endDocument

public void endDocument()
                 throws ParserException
Description copied from interface: XMLHandler

Callback method called to notify the end of the document.

Specified by:
endDocument in interface XMLHandler
Overrides:
endDocument in class DefaultXMLHandler
Throws:
ParserException - If a parser error occurs.
See Also:
DefaultXMLHandler.endDocument()

getParsedUserAccount

public UserAccount getParsedUserAccount()

Return the parsed user account.

Returns:
User account.

loadParsedUserAccount

public void loadParsedUserAccount(UserAccount user)

Load the parsed values into the given UserAccount.

Parameters:
user - UserAccount to be loaded.


Copyright © 2010 Twitter API ME Team. All Rights Reserved.