Enum TextProcessingMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TextProcessingMode>

    public enum TextProcessingMode
    extends java.lang.Enum<TextProcessingMode>

    The mode for processing text in OCR

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE
      Do not process text.
      REPLACE
      Process all text.
      UPDATE
      Only process text that is not extractable.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TextProcessingMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TextProcessingMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UPDATE

        public static final TextProcessingMode UPDATE
        Only process text that is not extractable. For all characters that have no meaningful Unicode, OCR processing is used to determine the Unicode. This is the recommended mode to make text extractable.
      • REPLACE

        public static final TextProcessingMode REPLACE
        Process all text. OCR is used to determine the Unicode of all characters, even if they seemingly have Unicode information. This is useful for documents that possibly contain wrong Unicode information.
    • Method Detail

      • values

        public static TextProcessingMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TextProcessingMode c : TextProcessingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TextProcessingMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null