|
Awake File v1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AwakeFileActionManager
The Action Manager for files: define how all concrete operations will be done on files.
Method Summary | |
---|---|
boolean |
delete(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: deletes a file. |
boolean |
download(OutputStream out,
AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: downloads a file on the Servlet response output stream. |
boolean |
exists(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: says if a file exists. |
long |
length(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: returns the file length in bytes. |
List<File> |
listDirectories(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: Lists all sub-directories of a directory. |
List<File> |
listFiles(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: Lists all files of a directory. |
boolean |
mkdir(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: creates a directory or sub-directory. |
boolean |
mkdirs(AwakeFileConfigurator awakeFileConfigurator,
String username,
String filename)
Action: creates a directory or sub-directory. |
void |
upload(AwakeFileConfigurator awakeFileConfigurator,
InputStream inputStream,
String username,
String filename)
Action: creates the uploaded file on the server. |
Method Detail |
---|
boolean delete(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of filename to delete
IOException
- if any IOException occursboolean download(OutputStream out, AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws FileNotFoundException, IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the filename to downloadout
- the Servlet response output stream
FileNotFoundException
IOException
boolean exists(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of filename to delete
IOException
- if any IOException occurslong length(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the filename to get the size from
IOException
List<File> listDirectories(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of the directory into which to search for
sur-directories
IOException
List<File> listFiles(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of the directory into which to search for files
IOException
boolean mkdir(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of filename to create the sub-dir for
IOException
- if any IOException occursboolean mkdirs(AwakeFileConfigurator awakeFileConfigurator, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationusername
- the client usernamefilename
- the full path of filename to create the sub-dir for
IOException
- if any IOException occursvoid upload(AwakeFileConfigurator awakeFileConfigurator, InputStream inputStream, String username, String filename) throws IOException
awakeFileConfigurator
- the user configurationinputStream
- the input stream of the multipart uploaded fileusername
- the client usernamefilename
- the full path of filename to create
IOException
- if any IOException occurs
|
Awake File v1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |