org.apache.abdera.ext.html
Class HtmlParser

java.lang.Object
  extended by org.apache.abdera.util.AbstractParser
      extended by org.apache.abdera.util.AbstractNamedParser
          extended by org.apache.abdera.ext.html.HtmlParser
All Implemented Interfaces:
NamedParser, Parser, NamedItem

public class HtmlParser
extends AbstractNamedParser


Field Summary
 
Fields inherited from class org.apache.abdera.util.AbstractNamedParser
formats, name
 
Fields inherited from class org.apache.abdera.util.AbstractParser
abdera, options
 
Constructor Summary
HtmlParser()
           
HtmlParser(Abdera abdera)
           
 
Method Summary
protected  ParserOptions initDefaultParserOptions()
           
<T extends Element>
Document<T>
parse(Reader in, String base, ParserOptions options)
          Parse the reader using using the specified Parse options.
<T extends Element>
Document<T>
parse(javax.xml.stream.XMLStreamReader reader)
          Parse the input stream using the default character set encoding (UTF-8)
<T extends Element>
Document<T>
parse(javax.xml.stream.XMLStreamReader reader, String base, ParserOptions options)
          Parse the channel using using the specified Parse options.
 
Methods inherited from class org.apache.abdera.util.AbstractNamedParser
getInputFormats, getName, parsesFormat
 
Methods inherited from class org.apache.abdera.util.AbstractParser
getAbdera, getDefaultParserOptions, getFactory, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, setAbdera, setDefaultParserOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.parser.Parser
getDefaultParserOptions, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, setDefaultParserOptions
 

Constructor Detail

HtmlParser

public HtmlParser()

HtmlParser

public HtmlParser(Abdera abdera)
Method Detail

initDefaultParserOptions

protected ParserOptions initDefaultParserOptions()
Specified by:
initDefaultParserOptions in class AbstractParser

parse

public <T extends Element> Document<T> parse(Reader in,
                                             String base,
                                             ParserOptions options)
                                  throws ParseException
Description copied from interface: Parser
Parse the reader using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.

Parameters:
in - The reader to parse
base - The Base URI of the document
options - The Parse Options
Returns:
The parsed Abdera Document
Throws:
ParseException - if the parse failed

parse

public <T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader)
                                  throws ParseException
Description copied from interface: Parser
Parse the input stream using the default character set encoding (UTF-8)

Specified by:
parse in interface Parser
Overrides:
parse in class AbstractParser
Parameters:
reader - The XMLStreamReader to use to parse
Returns:
The parsed Abdera Document
Throws:
ParseException - if the parse failed

parse

public <T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader,
                                             String base,
                                             ParserOptions options)
                                  throws ParseException
Description copied from interface: Parser
Parse the channel using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.

Parameters:
reader - the XMLStreamReader parser to use to parse
base - The Base URI of the document
options - The Parse Options
Returns:
The parsed Abdera Document
Throws:
ParseException - if the parse failed


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.