com.twitterapime.parser
Class Parser

java.lang.Object
  extended by com.twitterapime.parser.Parser

public abstract class Parser
extends java.lang.Object

This interface defines the necessary methods of a parser in order to retrieve the content of a document.

Since:
1.0
Version:
1.1
Author:
Ernandes Mourao Junior (ernandes@gmail.com)
See Also:
ParserFactory, Handler

Constructor Summary
Parser()
           
 
Method Summary
abstract  void parse(java.io.InputStream stream, Handler handler)
           Parse the content of the input stream specified as XML using the specified Handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public abstract void parse(java.io.InputStream stream,
                           Handler handler)
                    throws java.io.IOException,
                           ParserException

Parse the content of the input stream specified as XML using the specified Handler.

Parameters:
stream - The InputSource containing the content to be parsed.
handler - The handler to use.
Throws:
ParserException - If there is an error in the document format.
java.io.IOException - If an I/O error occurs.


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