Package org.apache.abdera.util
Class AbstractParserOptions
- java.lang.Object
 - 
- org.apache.abdera.util.AbstractParserOptions
 
 
- 
- All Implemented Interfaces:
 java.lang.Cloneable,ParserOptions
@Deprecated(since="2021-07-29") public abstract class AbstractParserOptions extends java.lang.Object implements ParserOptions, java.lang.Cloneable
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.Non thread-safe abstract implementation of ParserOptions 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()Deprecated.booleangetAutodetectCharset()Deprecated.Returns true if the parser should attempt to automatically detect the character encoding from the streamjava.lang.StringgetCharset()Deprecated.Returns the default character set to use for the parsed documentCompressionUtil.CompressionCodec[]getCompressionCodecs()Deprecated.When parsing an InputStream that contains compressed data, use these codecs to decompress the stream.FactorygetFactory()Deprecated.Returns the factory the parser should usechargetFilterRestrictedCharacterReplacement()Deprecated.If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified characterbooleangetFilterRestrictedCharacters()Deprecated.If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document.booleangetMustPreserveWhitespace()Deprecated.If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve".ParseFiltergetParseFilter()Deprecated.Returns the Parse Filter.java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName>getQNameAliasMap()Deprecated.Get the QName-Alias Mapping (default null)booleangetResolveEntities()Deprecated.True if undeclared named entities should be resolved.booleanisQNameAliasMappingEnabled()Deprecated.True if QName-Alias mapping is enabled (default is false)ParserOptionsregisterEntity(java.lang.String name, java.lang.String value)Deprecated.Register a named entity.java.lang.StringresolveEntity(java.lang.String name)Deprecated.Resolves a value for a named entity.ParserOptionssetAutodetectCharset(boolean detect)Deprecated.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.ParserOptionssetCharset(java.lang.String charset)Deprecated.Sets the character set to use for the parsed documentParserOptionssetCompressionCodecs(CompressionUtil.CompressionCodec... codecs)Deprecated.When parsing an InputStream that contains compressed data, use these codecs to decompress the stream.ParserOptionssetFactory(Factory factory)Deprecated.Sets the factory the parser should useParserOptionssetFilterRestrictedCharacterReplacement(char replacement)Deprecated.If getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified characterParserOptionssetFilterRestrictedCharacters(boolean filter)Deprecated.If true, the parser will attempt to silently filter out invalid XML characters appearing within the XML documentParserOptionssetMustPreserveWhitespace(boolean preserve)Deprecated.If false, the parser will trim leading and trailing whitespace in element and attribute values unless there is an in-scope xml:space="preserve".ParserOptionssetParseFilter(ParseFilter parseFilter)Deprecated.Sets the Parse Filter.ParserOptionssetQNameAliasMap(java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> map)Deprecated.Set the QName-Alias MappingParserOptionssetQNameAliasMappingEnabled(boolean enabled)Deprecated.True if QName-Alias mapping is enabledParserOptionssetResolveEntities(boolean resolve)Deprecated.True if undeclared named entities should be resolved. 
 - 
 
- 
- 
Method Detail
- 
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDeprecated.- Specified by:
 clonein interfaceParserOptions- Throws:
 java.lang.CloneNotSupportedException
 
- 
getFactory
public Factory getFactory()
Deprecated.Description copied from interface:ParserOptionsReturns the factory the parser should use- Specified by:
 getFactoryin interfaceParserOptions
 
- 
setFactory
public ParserOptions setFactory(Factory factory)
Deprecated.Description copied from interface:ParserOptionsSets the factory the parser should use- Specified by:
 setFactoryin interfaceParserOptions
 
- 
getCharset
public java.lang.String getCharset()
Deprecated.Description copied from interface:ParserOptionsReturns the default character set to use for the parsed document- Specified by:
 getCharsetin interfaceParserOptions
 
- 
setCharset
public ParserOptions setCharset(java.lang.String charset)
Deprecated.Description copied from interface:ParserOptionsSets the character set to use for the parsed document- Specified by:
 setCharsetin interfaceParserOptions
 
- 
getParseFilter
public ParseFilter getParseFilter()
Deprecated.Description copied from interface:ParserOptionsReturns 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:
 getParseFilterin interfaceParserOptions
 
- 
setParseFilter
public ParserOptions setParseFilter(ParseFilter parseFilter)
Deprecated.Description copied from interface:ParserOptionsSets 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:
 setParseFilterin interfaceParserOptions
 
- 
getAutodetectCharset
public boolean getAutodetectCharset()
Deprecated.Description copied from interface:ParserOptionsReturns true if the parser should attempt to automatically detect the character encoding from the stream- Specified by:
 getAutodetectCharsetin interfaceParserOptions
 
- 
setAutodetectCharset
public ParserOptions setAutodetectCharset(boolean detect)
Deprecated.Description copied from interface:ParserOptionsIf 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:
 setAutodetectCharsetin interfaceParserOptions
 
- 
getMustPreserveWhitespace
public boolean getMustPreserveWhitespace()
Deprecated.Description copied from interface:ParserOptionsIf 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:
 getMustPreserveWhitespacein interfaceParserOptions
 
- 
setMustPreserveWhitespace
public ParserOptions setMustPreserveWhitespace(boolean preserve)
Deprecated.Description copied from interface:ParserOptionsIf 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:
 setMustPreserveWhitespacein interfaceParserOptions
 
- 
getFilterRestrictedCharacters
public boolean getFilterRestrictedCharacters()
Deprecated.Description copied from interface:ParserOptionsIf true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document.- Specified by:
 getFilterRestrictedCharactersin interfaceParserOptions
 
- 
setFilterRestrictedCharacters
public ParserOptions setFilterRestrictedCharacters(boolean filter)
Deprecated.Description copied from interface:ParserOptionsIf true, the parser will attempt to silently filter out invalid XML characters appearing within the XML document- Specified by:
 setFilterRestrictedCharactersin interfaceParserOptions
 
- 
getFilterRestrictedCharacterReplacement
public char getFilterRestrictedCharacterReplacement()
Deprecated.Description copied from interface:ParserOptionsIf getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character- Specified by:
 getFilterRestrictedCharacterReplacementin interfaceParserOptions
 
- 
setFilterRestrictedCharacterReplacement
public ParserOptions setFilterRestrictedCharacterReplacement(char replacement)
Deprecated.Description copied from interface:ParserOptionsIf getFilterRestrictedCharacters is true, restricted characters will be replaced with the specified character- Specified by:
 setFilterRestrictedCharacterReplacementin interfaceParserOptions
 
- 
getCompressionCodecs
public CompressionUtil.CompressionCodec[] getCompressionCodecs()
Deprecated.Description copied from interface:ParserOptionsWhen 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:
 getCompressionCodecsin interfaceParserOptions
 
- 
setCompressionCodecs
public ParserOptions setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
Deprecated.Description copied from interface:ParserOptionsWhen 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:
 setCompressionCodecsin interfaceParserOptions
 
- 
registerEntity
public ParserOptions registerEntity(java.lang.String name, java.lang.String value)
Deprecated.Description copied from interface:ParserOptionsRegister 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:
 registerEntityin interfaceParserOptions
 
- 
resolveEntity
public java.lang.String resolveEntity(java.lang.String name)
Deprecated.Description copied from interface:ParserOptionsResolves 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:
 resolveEntityin interfaceParserOptions
 
- 
setResolveEntities
public ParserOptions setResolveEntities(boolean resolve)
Deprecated.Description copied from interface:ParserOptionsTrue if undeclared named entities should be resolved.- Specified by:
 setResolveEntitiesin interfaceParserOptions
 
- 
getResolveEntities
public boolean getResolveEntities()
Deprecated.Description copied from interface:ParserOptionsTrue if undeclared named entities should be resolved.- Specified by:
 getResolveEntitiesin interfaceParserOptions
 
- 
getQNameAliasMap
public java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> getQNameAliasMap()
Deprecated.Description copied from interface:ParserOptionsGet the QName-Alias Mapping (default null)- Specified by:
 getQNameAliasMapin interfaceParserOptions
 
- 
setQNameAliasMap
public ParserOptions setQNameAliasMap(java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> map)
Deprecated.Description copied from interface:ParserOptionsSet the QName-Alias Mapping- Specified by:
 setQNameAliasMapin interfaceParserOptions
 
- 
isQNameAliasMappingEnabled
public boolean isQNameAliasMappingEnabled()
Deprecated.Description copied from interface:ParserOptionsTrue if QName-Alias mapping is enabled (default is false)- Specified by:
 isQNameAliasMappingEnabledin interfaceParserOptions
 
- 
setQNameAliasMappingEnabled
public ParserOptions setQNameAliasMappingEnabled(boolean enabled)
Deprecated.Description copied from interface:ParserOptionsTrue if QName-Alias mapping is enabled- Specified by:
 setQNameAliasMappingEnabledin interfaceParserOptions
 
 - 
 
 -