|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.file.GenericFileDefaultSorter
public final class GenericFileDefaultSorter
Default file sorter.
Method Summary | |
---|---|
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse)
Returns a new sory by file language expression |
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase)
Returns a new sory by file language expression |
static Comparator<Exchange> |
sortByFileLanguage(CamelContext context,
String expression,
boolean reverse,
boolean ignoreCase,
Comparator<Exchange> nested)
Returns a new sort by file language expression |
static Comparator<GenericFile<?>> |
sortByLastModified(boolean reverse)
Returns a new sort by last modified (newest first) |
static Comparator<GenericFile<?>> |
sortByName(boolean reverse)
Returns a new sort by name |
static Comparator<GenericFile<?>> |
sortByPathName(boolean reverse)
Returns a new sort by path name |
static Comparator<GenericFile<?>> |
sortBySize(boolean reverse)
Returns a new sort by file size (smallest first) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Comparator<GenericFile<?>> sortByName(boolean reverse)
public static Comparator<GenericFile<?>> sortByPathName(boolean reverse)
public static Comparator<GenericFile<?>> sortByLastModified(boolean reverse)
public static Comparator<GenericFile<?>> sortBySize(boolean reverse)
public static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse order
public static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse, boolean ignoreCase)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderignoreCase
- ignore case if comparing strings
public static Comparator<Exchange> sortByFileLanguage(CamelContext context, String expression, boolean reverse, boolean ignoreCase, Comparator<Exchange> nested)
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderignoreCase
- ignore case if comparing stringsnested
- nested comparator for sub group sorting, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |