Package org.apache.tika.parser.pdf
Class AccessChecker
java.lang.Object
org.apache.tika.parser.pdf.AccessChecker
- All Implemented Interfaces:
Serializable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Checks whether or not a document allows extraction generally
or extraction for accessibility only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.This constructs anAccessCheckerthat will not perform any checking and will always return without throwing an exception.AccessChecker(boolean allowExtractionForAccessibility) Deprecated.This constructs anAccessCheckerthat will check for whether or not content should be extracted from a document. -
Method Summary
-
Constructor Details
-
AccessChecker
public AccessChecker()Deprecated.This constructs anAccessCheckerthat 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) Deprecated.This constructs anAccessCheckerthat 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 Details
-
check
Deprecated.Checks to see if a document's content should be extracted based on metadata values and the value ofallowAccessibilityin the constructor.- Parameters:
metadata-- Throws:
AccessPermissionException- if access is not permitted
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-