Skip to content

Instantly share code, notes, and snippets.

@rwoloszyn
Created March 7, 2016 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwoloszyn/42dfae75abb2767a9336 to your computer and use it in GitHub Desktop.
Save rwoloszyn/42dfae75abb2767a9336 to your computer and use it in GitHub Desktop.
Get file extensions in Java using Apache I/O
//If file is compressed uncompress it
if(FilenameUtils.getExtension(file.getAbsolutePath())
.equals("zip")){
logger.debug("file={}, unzipping",
file.getAbsolutePath());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment