org.mule.providers.file
Class SimpleFilenameParser
java.lang.Object
org.mule.providers.file.SimpleFilenameParser
- All Implemented Interfaces:
- FilenameParser
- public class SimpleFilenameParser
- extends Object
- implements FilenameParser
SimpleFilenameParser understands a limited set of tokens,
namely
- ${DATE} : the currrent date in the format dd-MM-yy_HH-mm-ss.SS
- ${DATE:yy-MM-dd} : the current date using the specified format
- ${SYSTIME} : The current system time milliseconds
- ${UUID} : A generated Universally unique id
- ${ORIGINALNAME} : The origial file name if the file being written was
read from another location
- ${COUNT} : An incremental counter
Note that square brackets can be used instead of curl brackets, this is
useful when defining the file output pattern in a Mule Url endpointUri where
the curl bracket is an invalid character.
- Version:
- $Revision: 3167 $
- Author:
- Ross Mason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
SimpleFilenameParser
public SimpleFilenameParser()
getFilename
public String getFilename(org.mule.umo.provider.UMOMessageAdapter adapter,
String pattern)
- Specified by:
getFilename in interface FilenameParser
getFilename
protected String getFilename(org.mule.umo.provider.UMOMessageAdapter adapter,
String pattern,
char left,
char right)
Copyright © 2003-2006 SymphonySoft Limited. All Rights Reserved.