On Mon, Aug 10, 2009 at 8:52 AM, akuhtz<[email protected]> wrote:
>
> Hi Claus,
>
> FileUtil.stripExt(...) does not exist on trunk ...

Ah that is very easy for yourself to create such a method. Eg its just
there to change the filename to use .dat as extension.
Here is the code:

    public static String stripExt(String name) {
        if (name == null) {
            return null;
        }
        int pos = name.lastIndexOf('.');
        if (pos != -1) {
            return name.substring(0, pos);
        }
        return name;
    }



> --
> View this message in context: 
> http://www.nabble.com/Problem-with-FileConsumer-and-pollEnrich-tp24795192p24895089.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to