Package org.apache.tika.parser.pdf
Class AccessChecker
- java.lang.Object
- 
- org.apache.tika.parser.pdf.AccessChecker
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class AccessChecker extends Object implements Serializable Checks whether or not a document allows extraction generally or extraction for accessibility only.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AccessChecker()This constructs anAccessCheckerthat will not perform any checking and will always return without throwing an exception.AccessChecker(boolean allowExtractionForAccessibility)This constructs anAccessCheckerthat will check for whether or not content should be extracted from a document.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(Metadata metadata)Checks to see if a document's content should be extracted based on metadata values and the value ofallowExtractionForAccessibilityin the constructor.booleanequals(Object o)inthashCode()booleanisAllowExtractionForAccessibility()
 
- 
- 
- 
Constructor Detail- 
AccessCheckerpublic AccessChecker() 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.
 - 
AccessCheckerpublic AccessChecker(boolean allowExtractionForAccessibility) 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 Detail- 
isAllowExtractionForAccessibilitypublic boolean isAllowExtractionForAccessibility() 
 - 
checkpublic void check(Metadata metadata) throws AccessPermissionException Checks to see if a document's content should be extracted based on metadata values and the value ofallowExtractionForAccessibilityin the constructor.- Parameters:
- metadata-
- Throws:
- AccessPermissionException- if access is not permitted
 
 
- 
 
-