public abstract class AbstractParser extends java.lang.Object implements Parser
| Modifier and Type | Method and Description |
|---|---|
Abdera |
getAbdera() |
ParserOptions |
getDefaultParserOptions()
Return the default parser options for this Parser.
|
Factory |
getFactory() |
<T extends Element> |
parse(java.io.InputStream in)
Parse the input stream using the default character set encoding (UTF-8)
|
<T extends Element> |
parse(java.io.InputStream in,
ParserOptions options)
Parse the input stream using the default character set encoding (UTF-8).
|
<T extends Element> |
parse(java.io.InputStream in,
java.lang.String base)
Parse the input stream using the default character set encoding (UTF-8).
|
<T extends Element> |
parse(java.io.InputStream in,
java.lang.String base,
ParserOptions options)
Parse the input stream using using the specified Parse options.
|
<T extends Element> |
parse(java.nio.channels.ReadableByteChannel buf)
Parse the channel using using the specified Parse options.
|
<T extends Element> |
parse(java.nio.channels.ReadableByteChannel buf,
ParserOptions options)
Parse the channel using using the specified Parse options.
|
<T extends Element> |
parse(java.nio.channels.ReadableByteChannel buf,
java.lang.String base)
Parse the channel using using the specified Parse options.
|
<T extends Element> |
parse(java.nio.channels.ReadableByteChannel buf,
java.lang.String base,
ParserOptions options)
Parse the channel using using the specified Parse options.
|
<T extends Element> |
parse(java.io.Reader in)
Parse the reader using the default Base URI and options
|
<T extends Element> |
parse(java.io.Reader in,
ParserOptions options)
Parse the reader using the specified Base URI
|
<T extends Element> |
parse(java.io.Reader in,
java.lang.String base)
Parse the reader using the specified Base URI
|
<T extends Element> |
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.
|
public Abdera getAbdera()
public void setAbdera(Abdera abdera)
public Factory getFactory()
public <T extends Element> Document<T> parse(java.io.InputStream in) throws ParseException
Parserparse in interface Parserin - The input stream to parseParseException - if the parse failedpublic <T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader) throws ParseException
Parserparse in interface Parserreader - The XMLStreamReader to use to parseParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base) throws ParseException
Parserparse in interface Parserin - The input stream to parsebase - The Base URI of the documentParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.InputStream in, ParserOptions options) throws ParseException
Parserparse in interface Parserin - The input stream to parseoptions - The Parse optionsParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base, ParserOptions options) throws ParseException
Parserparse in interface Parserin - The input stream to parsebase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in) throws ParseException
Parserparse in interface Parserin - The Reader to parseParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in, java.lang.String base) throws ParseException
Parserparse in interface Parserin - The Reader to parsebase - The Base URIParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in, ParserOptions options) throws ParseException
Parserparse in interface Parserin - The Reader to parseoptions - The Parse OptionsParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, ParserOptions options) throws ParseException
Parserparse in interface Parseroptions - The Parse OptionsParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base, ParserOptions options) throws ParseException
Parserparse in interface Parserbase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base) throws ParseException
Parserparse in interface Parserbase - The Base URI of the documentParseException - if the parse failedpublic <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf) throws ParseException
Parserparse in interface ParserParseException - if the parse failedpublic ParserOptions getDefaultParserOptions()
ParsergetDefaultParserOptions in interface Parserpublic Parser setDefaultParserOptions(ParserOptions options)
ParsersetDefaultParserOptions in interface Parseroptions - The Parser Options to use as the defaultCopyright © 2010 - 2023 Adobe. All Rights Reserved