Package org.apache.abdera.util
Class AbstractParser
- java.lang.Object
-
- org.apache.abdera.util.AbstractParser
-
- All Implemented Interfaces:
org.apache.abdera.parser.Parser
- Direct Known Subclasses:
AbstractNamedParser
public abstract class AbstractParser extends java.lang.Object implements org.apache.abdera.parser.Parser
Abstract base implementation of Abdera Parser.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Abdera
getAbdera()
org.apache.abdera.parser.ParserOptions
getDefaultParserOptions()
Factory
getFactory()
<T extends Element>
Document<T>parse(java.io.InputStream in)
<T extends Element>
Document<T>parse(java.io.InputStream in, java.lang.String base)
<T extends Element>
Document<T>parse(java.io.InputStream in, java.lang.String base, org.apache.abdera.parser.ParserOptions options)
<T extends Element>
Document<T>parse(java.io.InputStream in, org.apache.abdera.parser.ParserOptions options)
<T extends Element>
Document<T>parse(java.io.Reader in)
<T extends Element>
Document<T>parse(java.io.Reader in, java.lang.String base)
<T extends Element>
Document<T>parse(java.io.Reader in, org.apache.abdera.parser.ParserOptions options)
<T extends Element>
Document<T>parse(java.nio.channels.ReadableByteChannel buf)
<T extends Element>
Document<T>parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base)
<T extends Element>
Document<T>parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base, org.apache.abdera.parser.ParserOptions options)
<T extends Element>
Document<T>parse(java.nio.channels.ReadableByteChannel buf, org.apache.abdera.parser.ParserOptions options)
void
setAbdera(Abdera abdera)
org.apache.abdera.parser.Parser
setDefaultParserOptions(org.apache.abdera.parser.ParserOptions options)
-
-
-
Method Detail
-
getAbdera
public Abdera getAbdera()
-
setAbdera
public void setAbdera(Abdera abdera)
-
getFactory
public Factory getFactory()
-
parse
public <T extends Element> Document<T> parse(java.io.InputStream in) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.InputStream in, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.Reader in) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.Reader in, java.lang.String base) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.io.Reader in, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
parse
public <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf) throws org.apache.abdera.parser.ParseException
- Specified by:
parse
in interfaceorg.apache.abdera.parser.Parser
- Throws:
org.apache.abdera.parser.ParseException
-
getDefaultParserOptions
public org.apache.abdera.parser.ParserOptions getDefaultParserOptions()
- Specified by:
getDefaultParserOptions
in interfaceorg.apache.abdera.parser.Parser
-
setDefaultParserOptions
public org.apache.abdera.parser.Parser setDefaultParserOptions(org.apache.abdera.parser.ParserOptions options)
- Specified by:
setDefaultParserOptions
in interfaceorg.apache.abdera.parser.Parser
-
-