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

public static enum TextQualityFeatures.StripMode extends Enum<TextQualityFeatures.StripMode>
  • Enum Constant Details

    • NONE

      public static final TextQualityFeatures.StripMode NONE
      No stripping — pass text through unchanged.
    • WHITESPACE

      public static final TextQualityFeatures.StripMode WHITESPACE
      Strip only Unicode whitespace (per Character.isWhitespace(int)). Keeps punctuation, digits, Latin-1 Supplement symbols (¶ © ÷ etc.) — the signals that distinguish mojibake from clean text.
    • WHITESPACE_CONTROL

      public static final TextQualityFeatures.StripMode WHITESPACE_CONTROL
      Strip whitespace plus control characters and format characters (general categories Cc, Cf). Still keeps printable punctuation.
    • ALL_COMMON

      public static final TextQualityFeatures.StripMode 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

      public static TextQualityFeatures.StripMode[] 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

      public static TextQualityFeatures.StripMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null