Enum Class TextQualityFeatures.StripMode
java.lang.Object
java.lang.Enum<TextQualityFeatures.StripMode>
org.apache.tika.ml.junkdetect.TextQualityFeatures.StripMode
- All Implemented Interfaces:
Serializable, Comparable<TextQualityFeatures.StripMode>, Constable
- Enclosing class:
TextQualityFeatures
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProduction behaviour today: strip every COMMON, INHERITED, and UNKNOWN-script codepoint.No stripping — pass text through unchanged.Strip only Unicode whitespace (perCharacter.isWhitespace(int)).Strip whitespace plus control characters and format characters (general categories Cc, Cf). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TextQualityFeatures.StripMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No stripping — pass text through unchanged. -
WHITESPACE
Strip only Unicode whitespace (perCharacter.isWhitespace(int)). Keeps punctuation, digits, Latin-1 Supplement symbols (¶ © ÷ etc.) — the signals that distinguish mojibake from clean text. -
WHITESPACE_CONTROL
Strip whitespace plus control characters and format characters (general categories Cc, Cf). Still keeps printable punctuation. -
ALL_COMMON
Production behaviour today: strip every COMMON, INHERITED, and UNKNOWN-script codepoint. Removes everything in the BMP that is not script-tagged — including printable punctuation, digits, and Latin-1 supplement symbols.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-