public interface Parser
| Modifier and Type | Method and Description |
|---|---|
ParserOptions |
getDefaultParserOptions()
Return the default parser options for this Parser.
|
<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(java.io.Reader in,
java.lang.String base,
ParserOptions options)
Parse the reader using using the specified Parse options.
|
<T extends Element> |
parse(javax.xml.stream.XMLStreamReader reader)
Parse the input stream using the default character set encoding (UTF-8)
|
<T extends Element> |
parse(javax.xml.stream.XMLStreamReader reader,
java.lang.String base,
ParserOptions options)
Parse the channel using using the specified Parse options.
|
Parser |
setDefaultParserOptions(ParserOptions options)
Set the default parser options for this Parser.
|
<T extends Element> Document<T> parse(java.io.InputStream in) throws ParseException
in - The input stream to parseParseException - if the parse failed<T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader) throws ParseException
reader - The XMLStreamReader to use to parseParseException - if the parse failed<T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base) throws ParseException
in - The input stream to parsebase - The Base URI of the documentParseException - if the parse failed<T extends Element> Document<T> parse(java.io.InputStream in, ParserOptions options) throws ParseException
in - The input stream to parseoptions - The Parse optionsParseException - if the parse failed<T extends Element> Document<T> parse(java.io.InputStream in, java.lang.String base, ParserOptions options) throws ParseException
in - The input stream to parsebase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failed<T extends Element> Document<T> parse(java.io.Reader in) throws ParseException
in - The Reader to parseParseException - if the parse failed<T extends Element> Document<T> parse(java.io.Reader in, java.lang.String base) throws ParseException
in - The Reader to parsebase - The Base URIParseException - if the parse failed<T extends Element> Document<T> parse(java.io.Reader in, ParserOptions options) throws ParseException
in - The Reader to parseoptions - The Parse OptionsParseException - if the parse failed<T extends Element> Document<T> parse(java.io.Reader in, java.lang.String base, ParserOptions options) throws ParseException
in - The reader to parsebase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failed<T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf) throws ParseException
in - The ReadableByteChannel to parseParseException - if the parse failed<T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base) throws ParseException
in - The ReadableByteChannel to parsebase - The Base URI of the documentParseException - if the parse failed<T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, java.lang.String base, ParserOptions options) throws ParseException
in - The ReadableByteChannel to parsebase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failed<T extends Element> Document<T> parse(javax.xml.stream.XMLStreamReader reader, java.lang.String base, ParserOptions options) throws ParseException
reader - the XMLStreamReader parser to use to parsebase - The Base URI of the documentoptions - The Parse OptionsParseException - if the parse failed<T extends Element> Document<T> parse(java.nio.channels.ReadableByteChannel buf, ParserOptions options) throws ParseException
in - The ReadableByteChannel to parseoptions - The Parse OptionsParseException - if the parse failedParserOptions getDefaultParserOptions()
Parser setDefaultParserOptions(ParserOptions options)
options - The Parser Options to use as the defaultCopyright © 2010 - 2023 Adobe. All Rights Reserved