Package org.apache.camel.component.file
Class GenericFileDefaultSorter
java.lang.Object
org.apache.camel.component.file.GenericFileDefaultSorter
Default file sorter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator
<org.apache.camel.Exchange> sortByFileLanguage
(org.apache.camel.CamelContext context, String expression, boolean reverse) Returns a new sory by file language expressionstatic Comparator
<org.apache.camel.Exchange> sortByFileLanguage
(org.apache.camel.CamelContext context, String expression, boolean reverse, boolean ignoreCase) Returns a new sory by file language expressionstatic Comparator
<org.apache.camel.Exchange> sortByFileLanguage
(org.apache.camel.CamelContext context, String expression, boolean reverse, boolean ignoreCase, Comparator<org.apache.camel.Exchange> nested) Returns a new sort by file language expression
-
Method Details
-
sortByFileLanguage
public static Comparator<org.apache.camel.Exchange> sortByFileLanguage(org.apache.camel.CamelContext context, String expression, boolean reverse) Returns a new sory by file language expression- Parameters:
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse order- Returns:
- the comparator
-
sortByFileLanguage
public static Comparator<org.apache.camel.Exchange> sortByFileLanguage(org.apache.camel.CamelContext context, String expression, boolean reverse, boolean ignoreCase) Returns a new sory by file language expression- Parameters:
context
- the camel contextexpression
- the file language expressionreverse
- true to reverse orderignoreCase
- ignore case if comparing strings- Returns:
- the comparator
-
sortByFileLanguage
public static Comparator<org.apache.camel.Exchange> sortByFileLanguage(org.apache.camel.CamelContext context, String expression, boolean reverse, boolean ignoreCase, Comparator<org.apache.camel.Exchange> nested) Returns a new sort by file language expression- Parameters:
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- Returns:
- the comparator
-