|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eways.batchext.LocalFileProviderImpl
public class LocalFileProviderImpl
It is used to expose a group of local file functions.
Nested Class Summary | |
---|---|
protected class |
LocalFileProviderImpl.FileNameFilter
|
Field Summary | |
---|---|
protected LocalFileETD |
etd
|
protected long |
maxInitialAppendSize
|
protected static java.lang.String |
SP_MAX_INITIAL_APPEND_SIZE
|
protected static long |
SP_MAX_INITIAL_APPEND_SIZE_DEFAULT
|
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 directoryIsPattern,
java.lang.String file,
boolean fileIsPattern)
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String SP_MAX_INITIAL_APPEND_SIZE
protected static final long SP_MAX_INITIAL_APPEND_SIZE_DEFAULT
protected LocalFileETD etd
protected long maxInitialAppendSize
Method Detail |
---|
public void initialize(LocalFileETD etd)
initialize
in interface LocalFileProvider
public boolean reset()
reset
in interface LocalFileProvider
public boolean append(java.lang.String srcFileName, java.lang.String destFileName)
append
in interface LocalFileProvider
srcFileName
- The full name of source file.destFileName
- The full name of destination file.
public void copy(java.lang.String srcFileName, java.lang.String destFileName) throws LocalFileException
copy
in interface LocalFileProvider
srcFileName
- The full name of source file.destFileName
- The full name of destination file.
LocalFileException
public void delete(java.lang.String fileName) throws LocalFileException
delete
in interface LocalFileProvider
fileName
- The full file name.
LocalFileException
public void mkdir(java.lang.String dirName) throws LocalFileException
mkdir
in interface LocalFileProvider
dirName
- A valid directory name to be created.
LocalFileException
public void mkdirs(java.lang.String dirName) throws LocalFileException
mkdirs
in interface LocalFileProvider
dirName
- A valid directory name to be created.
LocalFileException
public void rename(java.lang.String srcFileName, java.lang.String destFileName) throws LocalFileException
rename
in interface LocalFileProvider
srcFileName
- The full name of source file.destFileName
- The full name of destination file.
LocalFileException
public LocalFileName getFirstFileName(java.lang.String directory, boolean directoryIsPattern, java.lang.String file, boolean fileIsPattern)
LocalFileProvider
getFirstFileName
in interface LocalFileProvider
directory
- The directory name or RegEx.file
- The file name or RegEx.
public com.stc.eways.common.eway.standalone.streaming.FileInputStream getFileInputStream(java.lang.String name) throws java.io.FileNotFoundException
getFileInputStream
in interface LocalFileProvider
java.io.FileNotFoundException
public java.io.FileOutputStream getFileOutputStream(java.lang.String name, boolean append) throws java.io.FileNotFoundException, LocalFileException
getFileOutputStream
in interface LocalFileProvider
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 |