Class ParsingIntent

java.lang.Object
org.apache.tika.parser.ParsingIntent

public final class ParsingIntent extends Object
Marker class to indicate parsing intent in ParseContext.

When set in the ParseContext before detection, this signals to detectors that parsing will follow detection. Detectors can use this hint to perform additional preparation (like salvaging corrupted ZIP files) that would benefit the subsequent parse operation.

This is automatically set by AutoDetectParser before calling the detector.

  • Field Details

    • WILL_PARSE

      public static final ParsingIntent WILL_PARSE
      Singleton instance indicating that parsing will follow detection.