Package org.apache.camel.component.file
Class GenericFileDefaultSorter
- java.lang.Object
-
- org.apache.camel.component.file.GenericFileDefaultSorter
-
public final class GenericFileDefaultSorter extends Object
Default file sorter.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-