Package de.mhus.lib.core.io
Class PdfFileChecker
- java.lang.Object
-
- de.mhus.lib.core.io.AbstractFileChecker
-
- de.mhus.lib.core.io.PdfFileChecker
-
- All Implemented Interfaces:
FileChecker
public class PdfFileChecker extends AbstractFileChecker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.mhus.lib.core.io.FileChecker
FileChecker.SUSPICIOUS
-
-
Constructor Summary
Constructors Constructor Description PdfFileChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileChecker.SUSPICIOUScheckForSuspicious(File in)If you want be sure reject everything that is not NO.booleanisFileType(InputStream in)-
Methods inherited from class de.mhus.lib.core.io.AbstractFileChecker
isFileType
-
-
-
-
Method Detail
-
isFileType
public boolean isFileType(InputStream in) throws IOException
- Throws:
IOException
-
checkForSuspicious
public FileChecker.SUSPICIOUS checkForSuspicious(File in) throws IOException
If you want be sure reject everything that is not NO. If you are generous reject everything that is YES. The value UNKNOWN should not happen the value should bes set as default value before you check a file.- Throws:
IOException
-
-