|
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 LocalFileProviderpublic boolean reset()
reset in interface LocalFileProvider
public boolean append(java.lang.String srcFileName,
java.lang.String destFileName)
append in interface LocalFileProvidersrcFileName - 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 LocalFileProvidersrcFileName - 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 LocalFileProviderfileName - The full file name.
LocalFileException
public void mkdir(java.lang.String dirName)
throws LocalFileException
mkdir in interface LocalFileProviderdirName - A valid directory name to be created.
LocalFileException
public void mkdirs(java.lang.String dirName)
throws LocalFileException
mkdirs in interface LocalFileProviderdirName - A valid directory name to be created.
LocalFileException
public void rename(java.lang.String srcFileName,
java.lang.String destFileName)
throws LocalFileException
rename in interface LocalFileProvidersrcFileName - 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 LocalFileProviderdirectory - 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 LocalFileProviderjava.io.FileNotFoundException
public java.io.FileOutputStream getFileOutputStream(java.lang.String name,
boolean append)
throws java.io.FileNotFoundException,
LocalFileException
getFileOutputStream in interface LocalFileProviderjava.io.FileNotFoundException
LocalFileException
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||