org.mule.providers.file
Class SimpleFilenameParser
java.lang.Object
org.mule.providers.file.SimpleFilenameParser
- All Implemented Interfaces:
- FilenameParser
- public class SimpleFilenameParser
- extends java.lang.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: 1.2 $
- 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 java.lang.String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
SimpleFilenameParser
public SimpleFilenameParser()
getFilename
public java.lang.String getFilename(UMOEvent event,
java.lang.String pattern)
- Specified by:
getFilename
in interface FilenameParser
getFilename
protected java.lang.String getFilename(UMOEvent event,
java.lang.String pattern,
char left,
char right)
getCount
protected long getCount()
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.