File info

 // File type
fileType = Files.probeContentType( new File("/path/to/file/ahmet.txt").toPath() );

// File extension
String ext = FilenameUtils.getExtension("/path/to/file/ahmet.txt");

 


Created Wed, Aug 3, 2016 8:47 PM by Ahmet Faruk Bişkinler
Last Updated Wed, Aug 3, 2016 8:50 PM by Ahmet Faruk Bişkinler