How can I check to see if a java.io.File is a PDF file? I have a Java java.io.File type how can I determine if it's a PDF file type?
ASKER CERTIFIED SOLUTION
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If I send this a Word file that has a .pdf extension (for example "myfile.pdf" - actually a Word file) does this method return true or false?
false. Try it ;)
Thanks CEHJ :).