org.apache.abdera.ext.html
Class HtmlParser
java.lang.Object
org.apache.abdera.util.AbstractParser
org.apache.abdera.util.AbstractNamedParser
org.apache.abdera.ext.html.HtmlParser
- All Implemented Interfaces:
- NamedParser, Parser, NamedItem
public class HtmlParser
- extends AbstractNamedParser
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 |
HtmlParser
public HtmlParser()
HtmlParser
public HtmlParser(Abdera abdera)
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 parsebase
- The Base URI of the documentoptions
- 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 parsebase
- The Base URI of the documentoptions
- The Parse Options
- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.