Example usage for org.apache.commons.io.comparator PathFileComparator PATH_COMPARATOR

List of usage examples for org.apache.commons.io.comparator PathFileComparator PATH_COMPARATOR

Introduction

In this page you can find the example usage for org.apache.commons.io.comparator PathFileComparator PATH_COMPARATOR.

Prototype

Comparator PATH_COMPARATOR

To view the source code for org.apache.commons.io.comparator PathFileComparator PATH_COMPARATOR.

Click Source Link

Document

Case-sensitive path comparator instance (see IOCase#SENSITIVE )

Usage

From source file:com.greenpepper.repository.FileSystemRepository.java

private void navigateInto(File directory, Hashtable<String, Vector<?>> pageBranch) throws IOException {
    File[] files = directory.listFiles(NOT_HIDDEN);
    if (files != null) {
        Arrays.sort(files, PathFileComparator.PATH_COMPARATOR);
        for (File file : files) {
            if (file.isDirectory() || isSupported(file)) {
                generateDocumentNode(file, pageBranch);
            }/*w  w  w . j  a v  a2s  .c o m*/
        }
    }
}