Class AbstractParserOptions

java.lang.Object
org.apache.abdera.util.AbstractParserOptions
All Implemented Interfaces:
Cloneable, ParserOptions

@Deprecated(since="2021-07-29") public abstract class AbstractParserOptions extends Object implements ParserOptions, Cloneable
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Non thread-safe abstract implementation of ParserOptions
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Deprecated.
      Specified by:
      clone in interface ParserOptions
      Throws:
      CloneNotSupportedException
    • getFactory

      public Factory getFactory()
      Deprecated.
      Description copied from interface: ParserOptions
      Returns the factory the parser should use
      Specified by:
      getFactory in interface ParserOptions
    • setFactory

      public ParserOptions setFactory(Factory factory)
      Deprecated.
      Description copied from interface: ParserOptions
      Sets the factory the parser should use
      Specified by:
      setFactory in interface ParserOptions
    • getCharset

      public String getCharset()
      Deprecated.
      Description copied from interface: ParserOptions
      Returns the default character set to use for the parsed document
      Specified by:
      getCharset in interface ParserOptions
    • setCharset

      public ParserOptions setCharset(String charset)
      Deprecated.
      Description copied from interface: ParserOptions
      Sets the character set to use for the parsed document
      Specified by:
      setCharset in interface ParserOptions
    • getParseFilter

      public ParseFilter getParseFilter()
      Deprecated.
      Description copied from interface: ParserOptions
      Returns the Parse Filter. The parse filter is a set of XML QNames that the parse should watch out for. If the filter is null, the parser will parse all elements in the document. I the filter is not null, the parser will only pay attention to elements whose QName's appear in the filter list.
      Specified by:
      getParseFilter in interface ParserOptions
    • setParseFilter

      public ParserOptions setParseFilter(ParseFilter parseFilter)
      Deprecated.
      Description copied from interface: ParserOptions
      Sets the Parse Filter. The parse filter is a set of XML QNames that the parse should watch out for. If the filter is null, the parser will parse all elements in the document. I the filter is not null, the parser will only pay attention to elements whose QName's appear in the filter list.
      Specified by:
      setParseFilter in interface ParserOptions
    • getAutodetectCharset

      public boolean getAutodetectCharset()
      Deprecated.
      Description copied from interface: ParserOptions
      Returns true if the parser should attempt to automatically detect the character encoding from the stream
      Specified by:
      getAutodetectCharset in interface ParserOptions
    • setAutodetectCharset

      public ParserOptions setAutodetectCharset(boolean detect)
      Deprecated.
      Description copied from interface: ParserOptions
      If true, the parser will attempt to automatically detect the character encoding from the stream by checking for the byte order mark or checking the XML prolog.
      Specified by:
      setAutodetectCharset in interface ParserOptions
    • getMustPreserveWhitespace

      public boolean getMustPreserveWhitespace()
      Deprecated.
      Description copied from interface: ParserOptions
      If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve".
      Specified by:
      getMustPreserveWhitespace in interface ParserOptions
    • setMustPreserveWhitespace

      public ParserOptions setMustPreserveWhitespace(boolean preserve)
      Deprecated.
      Description copied from interface: ParserOptions
      If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve".
      Specified by:
      setMustPreserveWhitespace in interface ParserOptions
    • getFilterRestrictedCharacters

      public boolean getFilterRestrictedCharacters()
      Deprecated.
      Description copied from interface: ParserOptions
      If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document.
      Specified by:
      getFilterRestrictedCharacters in interface ParserOptions
    • setFilterRestrictedCharacters

      public ParserOptions setFilterRestrictedCharacters(boolean filter)
      Deprecated.
      Description copied from interface: ParserOptions
      If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document
      Specified by:
      setFilterRestrictedCharacters in interface ParserOptions
    • getFilterRestrictedCharacterReplacement

      public char getFilterRestrictedCharacterReplacement()
      Deprecated.
      Description copied from interface: ParserOptions
      If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character
      Specified by:
      getFilterRestrictedCharacterReplacement in interface ParserOptions
    • setFilterRestrictedCharacterReplacement

      public ParserOptions setFilterRestrictedCharacterReplacement(char replacement)
      Deprecated.
      Description copied from interface: ParserOptions
      If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character
      Specified by:
      setFilterRestrictedCharacterReplacement in interface ParserOptions
    • getCompressionCodecs

      public CompressionUtil.CompressionCodec[] getCompressionCodecs()
      Deprecated.
      Description copied from interface: ParserOptions
      When parsing an InputStream that contains compressed data, use these codecs to decompress the stream. Only used when parsing an InputStream. Ignored when parsing a Reader
      Specified by:
      getCompressionCodecs in interface ParserOptions
    • setCompressionCodecs

      public ParserOptions setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
      Deprecated.
      Description copied from interface: ParserOptions
      When parsing an InputStream that contains compressed data, use these codecs to decompress the stream. Only used when parsing an InputStream. Ignored when parsing a Reader
      Specified by:
      setCompressionCodecs in interface ParserOptions
    • registerEntity

      public ParserOptions registerEntity(String name, String value)
      Deprecated.
      Description copied from interface: ParserOptions
      Register a named entity. This provides an escape clause for when feeds use entities that are not supported in XML without a DTD decl. By default, all of the (X)HTML entities are preregistered
      Specified by:
      registerEntity in interface ParserOptions
    • resolveEntity

      public String resolveEntity(String name)
      Deprecated.
      Description copied from interface: ParserOptions
      Resolves a value for a named entity. This provides an escape clause for when feeds use entities that are not supported in XML without a DTD decl. By default, all of the (X)HTML entities are preregistered
      Specified by:
      resolveEntity in interface ParserOptions
    • setResolveEntities

      public ParserOptions setResolveEntities(boolean resolve)
      Deprecated.
      Description copied from interface: ParserOptions
      True if undeclared named entities should be resolved.
      Specified by:
      setResolveEntities in interface ParserOptions
    • getResolveEntities

      public boolean getResolveEntities()
      Deprecated.
      Description copied from interface: ParserOptions
      True if undeclared named entities should be resolved.
      Specified by:
      getResolveEntities in interface ParserOptions
    • getQNameAliasMap

      public Map<QName,QName> getQNameAliasMap()
      Deprecated.
      Description copied from interface: ParserOptions
      Get the QName-Alias Mapping (default null)
      Specified by:
      getQNameAliasMap in interface ParserOptions
    • setQNameAliasMap

      public ParserOptions setQNameAliasMap(Map<QName,QName> map)
      Deprecated.
      Description copied from interface: ParserOptions
      Set the QName-Alias Mapping
      Specified by:
      setQNameAliasMap in interface ParserOptions
    • isQNameAliasMappingEnabled

      public boolean isQNameAliasMappingEnabled()
      Deprecated.
      Description copied from interface: ParserOptions
      True if QName-Alias mapping is enabled (default is false)
      Specified by:
      isQNameAliasMappingEnabled in interface ParserOptions
    • setQNameAliasMappingEnabled

      public ParserOptions setQNameAliasMappingEnabled(boolean enabled)
      Deprecated.
      Description copied from interface: ParserOptions
      True if QName-Alias mapping is enabled
      Specified by:
      setQNameAliasMappingEnabled in interface ParserOptions