Obtain information about the document format before opening it to avoid an exception if you are not sure what the actual content of the file is using Java....code example shows how to get a list of all the files in the folder:...to iterate over the collected list of files, check the format of...