Hi

You can use a custom sorter with the Camel file component
http://camel.apache.org/file2

See this unit test for an example
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileSorterRefTest.java


On Tue, Nov 15, 2011 at 4:42 PM, H Paul <[email protected]> wrote:
> File Component: how to sort files as WindowsExplorer? 1M Thanks.
>
>
> Using java, I do:
>
> To get a list of file sorted/ordered as Window Explorer:
>
> 1. Use listFiles() and store list of files in a listOfFileName
> 2. Collections.sort(listOfFileName, new WindowsExplorerStringComparator());
> 3. listOfFileName is sorted/ordered as Window Explorer.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/File-Component-how-to-sort-files-as-WindowsExplorer-tp4994675p4994675.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to