Class AccessChecker

  • All Implemented Interfaces:
    java.io.Serializable

    public class AccessChecker
    extends java.lang.Object
    implements java.io.Serializable
    Checks whether or not a document allows extraction generally or extraction for accessibility only.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessChecker()
      This constructs an AccessChecker that will not perform any checking and will always return without throwing an exception.
      AccessChecker​(boolean allowExtractionForAccessibility)
      This constructs an AccessChecker that will check for whether or not content should be extracted from a document.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(Metadata metadata)
      Checks to see if a document's content should be extracted based on metadata values and the value of allowAccessibility in the constructor.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccessChecker

        public AccessChecker()
        This constructs an AccessChecker that will not perform any checking and will always return without throwing an exception.

        This constructor is available to allow for Tika's legacy (<= v1.7) behavior.

      • AccessChecker

        public AccessChecker​(boolean allowExtractionForAccessibility)
        This constructs an AccessChecker that will check for whether or not content should be extracted from a document.
        Parameters:
        allowExtractionForAccessibility - if general extraction is not allowed, is extraction for accessibility allowed
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object