Enum HandlerConfig.PARSE_MODE

  • All Implemented Interfaces:
    Serializable, Comparable<HandlerConfig.PARSE_MODE>
    Enclosing class:
    HandlerConfig

    public static enum HandlerConfig.PARSE_MODE
    extends Enum<HandlerConfig.PARSE_MODE>
    RMETA "recursive metadata" is the same as the -J option in tika-app and the /rmeta endpoint in tika-server. Each embedded file is represented as its own metadata object. CONCATENATE is similar to the legacy tika-app behavior and the /tika endpoint (accept: application/json) in tika-server. This concatenates the contents of embedded files and returns a single metadata object for the file no matter how many embedded objects there are; this option throws away metadata from embedded objects and silently skips exceptions in embedded objects.
    • Method Detail

      • values

        public static HandlerConfig.PARSE_MODE[] 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 (HandlerConfig.PARSE_MODE c : HandlerConfig.PARSE_MODE.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HandlerConfig.PARSE_MODE valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null