Apache Commons IO is a library of utilities to assist with developing IO functionality. org.apache.commons.io.comparator package provides various Comparator implementations for Files. DirectoryFileComparator is one of the classes. This class can be used to sort lists or arrays of files (File objects) by directories and files. The File class’s isDirectory() method is used for comparing […]
from Java Code Geeks http://examples.javacodegeeks.com/core-java/apache/commons/io-commons/comparator-io-commons/directoryfilecomparator/org-apache-commons-io-comparator-directoryfilecomparator-example/
No comments:
Post a Comment