|
||||||||||
| 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(InputStream in)
Parse the input stream using the default character set encoding (UTF-8) |
|
|
parse(InputStream in,
ParserOptions options)
Parse the input stream using the default character set encoding (UTF-8). |
|
|
parse(InputStream in,
String base)
Parse the input stream using the default character set encoding (UTF-8). |
|
|
parse(InputStream in,
String base,
ParserOptions options)
Parse the input stream using using the specified Parse options. |
|
|
parse(ReadableByteChannel buf)
Parse the channel using using the specified Parse options. |
|
|
parse(ReadableByteChannel buf,
ParserOptions options)
Parse the channel using using the specified Parse options. |
|
|
parse(ReadableByteChannel buf,
String base)
Parse the channel using using the specified Parse options. |
|
|
parse(ReadableByteChannel buf,
String base,
ParserOptions options)
Parse the channel using using the specified Parse options. |
|
|
parse(Reader in)
Parse the reader using the default Base URI and options |
|
|
parse(Reader in,
ParserOptions options)
Parse the reader using the specified Base URI |
|
|
parse(Reader in,
String base)
Parse the reader using the specified Base URI |
|
|
parse(javax.xml.stream.XMLStreamReader reader)
Parse the input stream using the default character set encoding (UTF-8) |
|
void |
setAbdera(Abdera abdera)
|
|
Parser |
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, parse |
| Field Detail |
|---|
protected Abdera abdera
protected ParserOptions options
| Constructor Detail |
|---|
protected AbstractParser()
protected AbstractParser(Abdera abdera)
| Method Detail |
|---|
public Abdera getAbdera()
public void setAbdera(Abdera abdera)
public Factory getFactory()
public <T extends Element> Document<T> parse(InputStream in)
throws ParseException
Parser
parse in interface Parserin - The input stream to parse
ParseException - if the parse failed
public <T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader)
throws ParseException
Parser
parse in interface Parserreader - The XMLStreamReader to use to parse
ParseException - if the parse failed
public <T extends Element> Document<T> parse(InputStream in,
String base)
throws ParseException
Parser
parse in interface Parserin - The input stream to parsebase - The Base URI of the document
ParseException - if the parse failed
public <T extends Element> Document<T> parse(InputStream in,
ParserOptions options)
throws ParseException
Parser
parse in interface Parserin - The input stream to parseoptions - The Parse options
ParseException - if the parse failed
public <T extends Element> Document<T> parse(InputStream in,
String base,
ParserOptions options)
throws ParseException
Parser
parse in interface Parserin - The input stream to parsebase - The Base URI of the documentoptions - The Parse Options
ParseException - if the parse failed
public <T extends Element> Document<T> parse(Reader in)
throws ParseException
Parser
parse in interface Parserin - The Reader to parse
ParseException - if the parse failed
public <T extends Element> Document<T> parse(Reader in,
String base)
throws ParseException
Parser
parse in interface Parserin - The Reader to parsebase - The Base URI
ParseException - if the parse failed
public <T extends Element> Document<T> parse(Reader in,
ParserOptions options)
throws ParseException
Parser
parse in interface Parserin - The Reader to parseoptions - The Parse Options
ParseException - if the parse failed
public <T extends Element> Document<T> parse(ReadableByteChannel buf,
ParserOptions options)
throws ParseException
Parser
parse in interface Parseroptions - The Parse Options
ParseException - if the parse failed
public <T extends Element> Document<T> parse(ReadableByteChannel buf,
String base,
ParserOptions options)
throws ParseException
Parser
parse in interface Parserbase - The Base URI of the documentoptions - The Parse Options
ParseException - if the parse failed
public <T extends Element> Document<T> parse(ReadableByteChannel buf,
String base)
throws ParseException
Parser
parse in interface Parserbase - The Base URI of the document
ParseException - if the parse failed
public <T extends Element> Document<T> parse(ReadableByteChannel buf)
throws ParseException
Parser
parse in interface ParserParseException - if the parse failedpublic ParserOptions getDefaultParserOptions()
Parser
getDefaultParserOptions in interface Parserprotected abstract ParserOptions initDefaultParserOptions()
public Parser setDefaultParserOptions(ParserOptions options)
Parser
setDefaultParserOptions in interface Parseroptions - The Parser Options to use as the default
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||