public enum PreBuiltCharFilters extends java.lang.Enum<PreBuiltCharFilters>
Enum Constant and Description |
---|
HTML_STRIP |
Modifier and Type | Field and Description |
---|---|
protected PreBuiltCacheFactory.PreBuiltCache<CharFilterFactory> |
cache |
Modifier and Type | Method and Description |
---|---|
abstract java.io.Reader |
create(java.io.Reader tokenStream,
Version version) |
CharFilterFactory |
getCharFilterFactory(Version version) |
static PreBuiltCharFilters |
getOrDefault(java.lang.String name,
PreBuiltCharFilters defaultCharFilter)
Get a pre built CharFilter by its name or fallback to the default one
|
static PreBuiltCharFilters |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PreBuiltCharFilters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreBuiltCharFilters HTML_STRIP
protected final PreBuiltCacheFactory.PreBuiltCache<CharFilterFactory> cache
public static PreBuiltCharFilters[] values()
for (PreBuiltCharFilters c : PreBuiltCharFilters.values()) System.out.println(c);
public static PreBuiltCharFilters valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.io.Reader create(java.io.Reader tokenStream, Version version)
public CharFilterFactory getCharFilterFactory(Version version)
public static PreBuiltCharFilters getOrDefault(java.lang.String name, PreBuiltCharFilters defaultCharFilter)
name
- CharFilter namedefaultCharFilter
- default CharFilter if name not found