org.apache.camel.component.file.strategy
Class DefaultFileRenamer
java.lang.Object
org.apache.camel.component.file.strategy.DefaultFileRenamer
- All Implemented Interfaces:
- FileRenamer
public class DefaultFileRenamer
- extends Object
- implements FileRenamer
- Version:
- $Revision: 640438 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFileRenamer
public DefaultFileRenamer()
DefaultFileRenamer
public DefaultFileRenamer(String namePrefix,
String namePostfix)
renameFile
public File renameFile(File file)
- Specified by:
renameFile
in interface FileRenamer
getNamePostfix
public String getNamePostfix()
setNamePostfix
public void setNamePostfix(String namePostfix)
- Sets the name postfix appended to moved files. For example
to rename all the files from * to *.done set this value to ".done"
getNamePrefix
public String getNamePrefix()
setNamePrefix
public void setNamePrefix(String namePrefix)
- Sets the name prefix appended to moved files. For example
to move processed files into a hidden directory called ".camel"
set this value to ".camel/"
renameFileName
protected String renameFileName(File file)
Copyright © 2008 Apache Software Foundation. All Rights Reserved.