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
Parser
parse
in interface Parser
in
- The input stream to parseParseException
- if the parse failedpublic <T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader) throws ParseException
Parser
parse
in interface Parser
reader
- 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
Parser
parse
in interface Parser
in
- 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
Parser
parse
in interface Parser
in
- 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
Parser
parse
in interface Parser
in
- 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
Parser
parse
in interface Parser
in
- The Reader to parseParseException
- 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 URIParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.io.Reader in, ParserOptions options) throws ParseException
Parser
parse
in interface Parser
in
- 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
Parser
parse
in interface Parser
options
- 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
Parser
parse
in interface Parser
base
- 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
Parser
parse
in interface Parser
base
- The Base URI of the documentParseException
- if the parse failedpublic <T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf) throws ParseException
Parser
parse
in interface Parser
ParseException
- if the parse failedpublic ParserOptions getDefaultParserOptions()
Parser
getDefaultParserOptions
in interface Parser
public Parser setDefaultParserOptions(ParserOptions options)
Parser
setDefaultParserOptions
in interface Parser
options
- The Parser Options to use as the defaultCopyright © 2010 - 2023 Adobe. All Rights Reserved