Package org.apache.abdera.util
Class AbstractParser
java.lang.Object
org.apache.abdera.util.AbstractParser
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
AbstractNamedParser
@Deprecated(since="2021-07-29")
public abstract class AbstractParser
extends Object
implements Parser
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Abstract base implementation of Abdera Parser.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Return the default parser options for this Parser.Deprecated.parse
(InputStream in) Deprecated.Parse the input stream using the default character set encoding (UTF-8)parse
(InputStream in, String base) Deprecated.Parse the input stream using the default character set encoding (UTF-8).parse
(InputStream in, String base, ParserOptions options) Deprecated.Parse the input stream using using the specified Parse options.parse
(InputStream in, ParserOptions options) Deprecated.Parse the input stream using the default character set encoding (UTF-8).Deprecated.Parse the reader using the default Base URI and optionsDeprecated.Parse the reader using the specified Base URIparse
(Reader in, ParserOptions options) Deprecated.Parse the reader using the specified Base URIparse
(ReadableByteChannel buf) Deprecated.Parse the channel using using the specified Parse options.parse
(ReadableByteChannel buf, String base) Deprecated.Parse the channel using using the specified Parse options.parse
(ReadableByteChannel buf, String base, ParserOptions options) Deprecated.Parse the channel using using the specified Parse options.parse
(ReadableByteChannel buf, ParserOptions options) Deprecated.Parse the channel using using the specified Parse options.parse
(XMLStreamReader reader) Deprecated.Parse the input stream using the default character set encoding (UTF-8)void
Deprecated.setDefaultParserOptions
(ParserOptions options) Deprecated.Set the default parser options for this Parser.
-
Method Details
-
getAbdera
Deprecated. -
setAbdera
Deprecated. -
getFactory
Deprecated. -
parse
Deprecated.Description copied from interface:Parser
Parse the input stream using the default character set encoding (UTF-8)- Specified by:
parse
in interfaceParser
- Parameters:
in
- The input stream to parse- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
Deprecated.Description copied from interface:Parser
Parse the input stream using the default character set encoding (UTF-8)- Specified by:
parse
in interfaceParser
- Parameters:
reader
- The XMLStreamReader to use to parse- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
Deprecated.Description copied from interface:Parser
Parse the input stream using the default character set encoding (UTF-8). The specified Base URI is used to resolve relative references contained in the document- Specified by:
parse
in interfaceParser
- Parameters:
in
- The input stream to parsebase
- The Base URI of the document- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(InputStream in, ParserOptions options) throws ParseException Deprecated.Description copied from interface:Parser
Parse the input stream using the default character set encoding (UTF-8). The specified Base URI is used to resolve relative references contained in the document- Specified by:
parse
in interfaceParser
- Parameters:
in
- The input stream to parseoptions
- The Parse options- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(InputStream in, String base, ParserOptions options) throws ParseException Deprecated.Description copied from interface:Parser
Parse the input stream using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.- Specified by:
parse
in interfaceParser
- Parameters:
in
- The input stream to parsebase
- The Base URI of the documentoptions
- The Parse Options- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
Deprecated.Description copied from interface:Parser
Parse the reader using the default Base URI and options- Specified by:
parse
in interfaceParser
- Parameters:
in
- The Reader to parse- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
Deprecated.Description copied from interface:Parser
Parse the reader using the specified Base URI- Specified by:
parse
in interfaceParser
- Parameters:
in
- The Reader to parsebase
- The Base URI- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(Reader in, ParserOptions options) throws ParseException Deprecated.Description copied from interface:Parser
Parse the reader using the specified Base URI- Specified by:
parse
in interfaceParser
- Parameters:
in
- The Reader to parseoptions
- The Parse Options- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(ReadableByteChannel buf, ParserOptions options) throws ParseException Deprecated.Description copied from interface:Parser
Parse the channel using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.- Specified by:
parse
in interfaceParser
- Parameters:
options
- The Parse Options- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(ReadableByteChannel buf, String base, ParserOptions options) throws ParseException Deprecated.Description copied from interface:Parser
Parse the channel using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.- Specified by:
parse
in interfaceParser
- Parameters:
base
- The Base URI of the documentoptions
- The Parse Options- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
public <T extends Element> Document<T> parse(ReadableByteChannel buf, String base) throws ParseException Deprecated.Description copied from interface:Parser
Parse the channel using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.- Specified by:
parse
in interfaceParser
- Parameters:
base
- The Base URI of the document- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
parse
Deprecated.Description copied from interface:Parser
Parse the channel using using the specified Parse options. The parse options can be used to control various aspects of the parsing process such as the character set encoding to use and whether certain elements should be ignored. The specified Base URI is used to resolve relative references contained in the document.- Specified by:
parse
in interfaceParser
- Returns:
- The parsed Abdera Document
- Throws:
ParseException
- if the parse failed
-
getDefaultParserOptions
Deprecated.Description copied from interface:Parser
Return the default parser options for this Parser. This method returns a copy of the default options. Changes to this instance will not affect the defaults returned by subsequent requests.- Specified by:
getDefaultParserOptions
in interfaceParser
- Returns:
- The default ParserOptions
-
setDefaultParserOptions
Deprecated.Description copied from interface:Parser
Set the default parser options for this Parser. This method copies the specified options.- Specified by:
setDefaultParserOptions
in interfaceParser
- Parameters:
options
- The Parser Options to use as the default
-