|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.util.AbstractParser
public abstract class AbstractParser
Abstract base implementation of Abdera Parser.
Field Summary | |
---|---|
protected Abdera |
abdera
|
protected ParserOptions |
options
|
Constructor Summary | |
---|---|
protected |
AbstractParser()
|
protected |
AbstractParser(Abdera abdera)
|
Method Summary | ||
---|---|---|
Abdera |
getAbdera()
|
|
ParserOptions |
getDefaultParserOptions()
Return the default parser options for this Parser. |
|
Factory |
getFactory()
|
|
protected abstract ParserOptions |
initDefaultParserOptions()
|
|
|
parse(java.io.InputStream in)
Parse the input stream using the default character set encoding (UTF-8) |
|
|
parse(java.io.InputStream in,
java.lang.String base)
Parse the input stream using the default character set encoding (UTF-8). |
|
|
parse(java.io.InputStream in,
java.lang.String base,
ParserOptions options)
Parse the input stream using using the specified Parse options. |
|
|
parse(java.io.Reader in)
Parse the reader using the default Base URI and options |
|
|
parse(java.io.Reader in,
java.lang.String base)
Parse the reader using the specified Base URI |
|
void |
setDefaultParserOptions(ParserOptions options)
Set the default parser options for this Parser. |
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 |
---|
parse |
Field Detail |
---|
protected final Abdera abdera
protected ParserOptions options
Constructor Detail |
---|
protected AbstractParser()
protected AbstractParser(Abdera abdera)
Method Detail |
---|
public Abdera getAbdera()
public Factory getFactory()
public <T extends Element> Document<T> parse(java.io.InputStream in) throws ParseException
Parser
parse
in interface Parser
in
- The input stream to parse
ParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base) throws ParseException
Parser
parse
in interface Parser
in
- The input stream to parsebase
- The Base URI of the document
ParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base, ParserOptions options) throws ParseException
Parser
parse
in interface Parser
in
- The input stream to parsebase
- The Base URI of the documentoptions
- The Parse Options
ParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in) throws ParseException
Parser
parse
in interface Parser
in
- The Reader to parse
ParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in, java.lang.String base) throws ParseException
Parser
parse
in interface Parser
in
- The Reader to parsebase
- The Base URI
ParseException
- if the parse failedpublic ParserOptions getDefaultParserOptions()
Parser
getDefaultParserOptions
in interface Parser
protected abstract ParserOptions initDefaultParserOptions()
public void setDefaultParserOptions(ParserOptions options)
Parser
setDefaultParserOptions
in interface Parser
options
- The Parser Options to use as the default
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |