|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericFileOperations<T>
| Method Summary | |
|---|---|
boolean |
buildDirectory(String directory,
boolean absolute)
Builds the directory structure. |
void |
changeCurrentDirectory(String path)
Change the current remote directory |
boolean |
deleteFile(String name)
Deletes the file name by name, relative to the current directory |
String |
getCurrentDirectory()
Gets the current remote directory |
List<T> |
listFiles()
List the files in the current directory |
List<T> |
listFiles(String path)
List the files in the given remote directory |
boolean |
renameFile(String from,
String to)
Renames the file |
boolean |
retrieveFile(String name,
GenericFileExchange<T> exchange)
Retrieves the file |
void |
setEndpoint(GenericFileEndpoint endpoint)
Sets the endpoint as some implementations need access to the endpoint and how its configured. |
boolean |
storeFile(String name,
GenericFileExchange<T> exchange)
Stores the content as a new remote file (upload) |
| Method Detail |
|---|
void setEndpoint(GenericFileEndpoint endpoint)
endpoint - the endpoint
boolean deleteFile(String name)
throws GenericFileOperationFailedException
name - name of the file
GenericFileOperationFailedException - can be thrown
boolean renameFile(String from,
String to)
throws GenericFileOperationFailedException
from - original nameto - the new name
GenericFileOperationFailedException - can be thrown
boolean buildDirectory(String directory,
boolean absolute)
throws GenericFileOperationFailedException
directory - the directory path to build as a relative string nameabsolute - wether the directory is an absolute or relative path
GenericFileOperationFailedException - can be thrown
boolean retrieveFile(String name,
GenericFileExchange<T> exchange)
throws GenericFileOperationFailedException
name - name of the fileexchange - stream to write the content of the file into
GenericFileOperationFailedException - can be thrown
boolean storeFile(String name,
GenericFileExchange<T> exchange)
throws GenericFileOperationFailedException
name - name of new fileexchange - with the content content of the file
GenericFileOperationFailedException - can be thrown
String getCurrentDirectory()
throws GenericFileOperationFailedException
GenericFileOperationFailedException - can be thrown
void changeCurrentDirectory(String path)
throws GenericFileOperationFailedException
path - the path to change to
GenericFileOperationFailedException - can be thrown
List<T> listFiles()
throws GenericFileOperationFailedException
GenericFileOperationFailedException - can be thrown
List<T> listFiles(String path)
throws GenericFileOperationFailedException
path - the remote directory
GenericFileOperationFailedException - can be thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||