Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.twitterapime.search.handler
Class SearchResultHandler

    java.lang.Object
      com.twitterapime.parser.DefaultXMLHandler
          com.twitterapime.search.handler.SearchResultHandler

All Implemented Interfaces:
  Handler, XMLHandler

    public final class SearchResultHandler

extends DefaultXMLHandler

Handler class for parsing the XML search result from Twitter API.

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

Field Summary

Fields inherited from class com.twitterapime.parser.DefaultXMLHandler
`xmlPath`

Constructor Summary
`SearchResultHandler()`

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()` Returns the parsed tweets.
`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

### SearchResultHandler

    public SearchResultHandler()

Method Detail

### startElement

    public void startElement(java.lang.String namespaceURI,
                             java.lang.String localName,
                             java.lang.String qName,
                             Attributes attrs)
                      throws ParserException

  Description copied from interface: `XMLHandler`

  Callback method called to notify the start of a element in the document.

  Specified by:
    `startElement` in interface `XMLHandler`
  Overrides:
    `startElement` in class `DefaultXMLHandler`
  Parameters:
    `namespaceURI` - URI.
    `localName` - The local name.
    `qName` - The qualified name.
    `attrs` - The specified or defaulted attributes.
  Throws:
    `ParserException` - If a parser error occurs.
  See Also:
    `DefaultXMLHandler.startElement(java.lang.String, java.lang.String, java.lang.String, com.twitterapime.parser.Attributes)`

### endElement

    public void endElement(java.lang.String namespaceURI,
                           java.lang.String localName,
                           java.lang.String qName)
                    throws ParserException

  Description copied from interface: `XMLHandler`

  Callback method called to notify the end of a element in the document.

  Specified by:
    `endElement` in interface `XMLHandler`
  Overrides:
    `endElement` in class `DefaultXMLHandler`
  Parameters:
    `namespaceURI` - URI.
    `localName` - The local name.
    `qName` - The qualified name.
  Throws:
    `ParserException` - If a parser error occurs.
  See Also:
    `DefaultXMLHandler.endElement(java.lang.String, java.lang.String, java.lang.String)`

### 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)`

### getParsedTweets

    public Tweet[] getParsedTweets()

  Returns the parsed tweets.

  Returns:
    Tweets.

### setSearchDeviceListener

    public void setSearchDeviceListener(SearchDeviceListener listener)

  Set the search device listener object.

  Parameters:
    `listener` - Listener object.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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