public class AccessChecker
extends java.lang.Object
implements java.io.Serializable
Constructor and 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. |
Modifier and Type | Method and 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() |
public AccessChecker()
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.public AccessChecker(boolean allowExtractionForAccessibility)
AccessChecker
that will check
for whether or not content should be extracted from a document.allowExtractionForAccessibility
- if general extraction is not allowed, is extraction for accessibility allowedpublic void check(Metadata metadata) throws AccessPermissionException
allowAccessibility
in the constructor.metadata
- AccessPermissionException
- if access is not permittedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"