Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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