Class AbstractParser

  • All Implemented Interfaces:
    Parser
    Direct Known Subclasses:
    AbstractNamedParser

    @Deprecated(since="2021-07-29")
    public abstract class AbstractParser
    extends java.lang.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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Abdera getAbdera()
      Deprecated.
       
      ParserOptions getDefaultParserOptions()
      Deprecated.
      Return the default parser options for this Parser.
      Factory getFactory()
      Deprecated.
       
      <T extends Element>
      Document<T>
      parse​(java.io.InputStream in)
      Deprecated.
      Parse the input stream using the default character set encoding (UTF-8)
      <T extends Element>
      Document<T>
      parse​(java.io.InputStream in, java.lang.String base)
      Deprecated.
      Parse the input stream using the default character set encoding (UTF-8).
      <T extends Element>
      Document<T>
      parse​(java.io.InputStream in, java.lang.String base, ParserOptions options)
      Deprecated.
      Parse the input stream using using the specified Parse options.
      <T extends Element>
      Document<T>
      parse​(java.io.InputStream in, ParserOptions options)
      Deprecated.
      Parse the input stream using the default character set encoding (UTF-8).
      <T extends Element>
      Document<T>
      parse​(java.io.Reader in)
      Deprecated.
      Parse the reader using the default Base URI and options
      <T extends Element>
      Document<T>
      parse​(java.io.Reader in, java.lang.String base)
      Deprecated.
      Parse the reader using the specified Base URI
      <T extends Element>
      Document<T>
      parse​(java.io.Reader in, ParserOptions options)
      Deprecated.
      Parse the reader using the specified Base URI
      <T extends Element>
      Document<T>
      parse​(java.nio.channels.ReadableByteChannel buf)
      Deprecated.
      Parse the channel using using the specified Parse options.
      <T extends Element>
      Document<T>
      parse​(java.nio.channels.ReadableByteChannel buf, java.lang.String base)
      Deprecated.
      Parse the channel using using the specified Parse options.
      <T extends Element>
      Document<T>
      parse​(java.nio.channels.ReadableByteChannel buf, java.lang.String base, ParserOptions options)
      Deprecated.
      Parse the channel using using the specified Parse options.
      <T extends Element>
      Document<T>
      parse​(java.nio.channels.ReadableByteChannel buf, ParserOptions options)
      Deprecated.
      Parse the channel using using the specified Parse options.
      <T extends Element>
      Document<T>
      parse​(javax.xml.stream.XMLStreamReader reader)
      Deprecated.
      Parse the input stream using the default character set encoding (UTF-8)
      void setAbdera​(Abdera abdera)
      Deprecated.
       
      Parser setDefaultParserOptions​(ParserOptions options)
      Deprecated.
      Set the default parser options for this Parser.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAbdera

        public Abdera getAbdera()
        Deprecated.
      • setAbdera

        public void setAbdera​(Abdera abdera)
        Deprecated.
      • getFactory

        public Factory getFactory()
        Deprecated.
      • parse

        public <T extends ElementDocument<T> parse​(java.io.InputStream in)
                                              throws ParseException
        Deprecated.
        Description copied from interface: Parser
        Parse the input stream using the default character set encoding (UTF-8)
        Specified by:
        parse in interface Parser
        Parameters:
        in - The input stream to parse
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(javax.xml.stream.XMLStreamReader reader)
                                              throws ParseException
        Deprecated.
        Description copied from interface: Parser
        Parse the input stream using the default character set encoding (UTF-8)
        Specified by:
        parse in interface Parser
        Parameters:
        reader - The XMLStreamReader to use to parse
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.InputStream in,
                                                     java.lang.String base)
                                              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 interface Parser
        Parameters:
        in - The input stream to parse
        base - The Base URI of the document
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.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 interface Parser
        Parameters:
        in - The input stream to parse
        options - The Parse options
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.InputStream in,
                                                     java.lang.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 interface Parser
        Parameters:
        in - The input stream to parse
        base - The Base URI of the document
        options - The Parse Options
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.Reader in)
                                              throws ParseException
        Deprecated.
        Description copied from interface: Parser
        Parse the reader using the default Base URI and options
        Specified by:
        parse in interface Parser
        Parameters:
        in - The Reader to parse
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.Reader in,
                                                     java.lang.String base)
                                              throws ParseException
        Deprecated.
        Description copied from interface: Parser
        Parse the reader using the specified Base URI
        Specified by:
        parse in interface Parser
        Parameters:
        in - The Reader to parse
        base - The Base URI
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.io.Reader in,
                                                     ParserOptions options)
                                              throws ParseException
        Deprecated.
        Description copied from interface: Parser
        Parse the reader using the specified Base URI
        Specified by:
        parse in interface Parser
        Parameters:
        in - The Reader to parse
        options - The Parse Options
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.nio.channels.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 interface Parser
        options - The Parse Options
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.nio.channels.ReadableByteChannel buf,
                                                     java.lang.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 interface Parser
        base - The Base URI of the document
        options - The Parse Options
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.nio.channels.ReadableByteChannel buf,
                                                     java.lang.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 interface Parser
        base - The Base URI of the document
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • parse

        public <T extends ElementDocument<T> parse​(java.nio.channels.ReadableByteChannel buf)
                                              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 interface Parser
        Returns:
        The parsed Abdera Document
        Throws:
        ParseException - if the parse failed
      • getDefaultParserOptions

        public ParserOptions 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 interface Parser
        Returns:
        The default ParserOptions
      • setDefaultParserOptions

        public Parser setDefaultParserOptions​(ParserOptions options)
        Deprecated.
        Description copied from interface: Parser
        Set the default parser options for this Parser. This method copies the specified options.
        Specified by:
        setDefaultParserOptions in interface Parser
        Parameters:
        options - The Parser Options to use as the default