public class AccessChecker extends Object implements 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(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 permittedCopyright © 2007–1969 The Apache Software Foundation. All rights reserved.