com.stc.connector.batchadapter.util
Class BatchInboundFileUtil
java.lang.Object
com.stc.connector.batchadapter.util.BatchInboundFileUtil
public class BatchInboundFileUtil
- extends java.lang.Object
- Author:
- rchen
Method Summary |
void |
delete(java.lang.String fileName)
Delete the file. |
LocalFileName |
getFirstFileName(java.lang.String directory,
boolean directoryIsPattern,
java.lang.String file,
boolean fileIsPattern)
|
void |
rename(java.lang.String srcFileName,
java.lang.String destFileName)
Rename the source file to the destination file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchInboundFileUtil
public BatchInboundFileUtil()
- Creates a new instance of BatchInboundFileUtil
delete
public void delete(java.lang.String fileName)
throws BatchInboundException
- Delete the file.
- Parameters:
fileName
- The full file name.
- Throws:
BatchInboundException
rename
public void rename(java.lang.String srcFileName,
java.lang.String destFileName)
throws BatchInboundException
- Rename the source file to the destination file.
Note: When moving or renaming a file, the destination volume
must be the same as the source volume.
- Parameters:
srcFileName
- The full name of source file.destFileName
- The full name of destination file.
- Throws:
BatchInboundException
getFirstFileName
public LocalFileName getFirstFileName(java.lang.String directory,
boolean directoryIsPattern,
java.lang.String file,
boolean fileIsPattern)