|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalFileProvider
It is used to expose a group of local file functions.
| Method Summary | |
|---|---|
boolean |
append(java.lang.String srcFileName,
java.lang.String destFileName)
Append the contents of the source file to the destination file. |
void |
copy(java.lang.String srcFileName,
java.lang.String destFileName)
Copy the contents of the source file to the destination file. |
void |
delete(java.lang.String fileName)
Delete the file. |
com.stc.eways.common.eway.standalone.streaming.FileInputStream |
getFileInputStream(java.lang.String name)
|
java.io.FileOutputStream |
getFileOutputStream(java.lang.String name,
boolean append)
|
LocalFileName |
getFirstFileName(java.lang.String directory,
boolean directoryIsRegEx,
java.lang.String file,
boolean fileIsRegEx)
Get the first file name matching the specified parameters. |
void |
initialize(LocalFileETD etd)
|
void |
mkdir(java.lang.String dirName)
Create the named directory, returning true if and only if the directory was created; false otherwise. |
void |
mkdirs(java.lang.String dirName)
Create the named directory, including any necessary but nonexistent parent directories. |
void |
rename(java.lang.String srcFileName,
java.lang.String destFileName)
Rename the source file to the destination file. |
boolean |
reset()
|
| Method Detail |
|---|
void initialize(LocalFileETD etd)
boolean reset()
boolean append(java.lang.String srcFileName,
java.lang.String destFileName)
srcFileName - The full name of source file.destFileName - The full name of destination file.
void copy(java.lang.String srcFileName,
java.lang.String destFileName)
throws LocalFileException
srcFileName - The full name of source file.destFileName - The full name of destination file.
LocalFileException
void delete(java.lang.String fileName)
throws LocalFileException
fileName - The full file name.
LocalFileException
void mkdir(java.lang.String dirName)
throws LocalFileException
dirName - A valid directory name to be created.
LocalFileException
void mkdirs(java.lang.String dirName)
throws LocalFileException
dirName - A valid directory name to be created.
LocalFileException
void rename(java.lang.String srcFileName,
java.lang.String destFileName)
throws LocalFileException
srcFileName - The full name of source file.destFileName - The full name of destination file.
LocalFileException
LocalFileName getFirstFileName(java.lang.String directory,
boolean directoryIsRegEx,
java.lang.String file,
boolean fileIsRegEx)
directory - The directory name or RegEx.directoryIsPattern - Indicates whether the directory parameter is a RegEx.file - The file name or RegEx.fileIsPattern - Indicates whether the file parameter is a RegEx.
com.stc.eways.common.eway.standalone.streaming.FileInputStream getFileInputStream(java.lang.String name)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
java.io.FileOutputStream getFileOutputStream(java.lang.String name,
boolean append)
throws java.io.FileNotFoundException,
LocalFileException
java.io.FileNotFoundException
LocalFileException
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||