Package edu.odu.cs.cs350
Class DocumentLength
java.lang.Object
edu.odu.cs.cs350.DocumentLength
Checks if a PDF file is less than 50 pages.
This makes sure the program only accepts small documents.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidLength(File file) Return true if the PDF has less than 50 pages.
-
Constructor Details
-
DocumentLength
public DocumentLength()
-
-
Method Details
-
isValidLength
Return true if the PDF has less than 50 pages.- Parameters:
file- the PDF file- Returns:
- true if under 50 pages, false otherwise
-