org.jbehave.web.io
Interface FileManager
- All Known Implementing Classes:
- ArchivingFileManager
public interface FileManager
Manages data files, allowing the upload, list and delete. If a file is any
archive, the contents can be unarchived to the directory with the corresponding
name af the archive (e.g. for archive "/path/to/archive.zip", the output
directory will be "/path/to/archive". The manager also allows to list
the content of a uploaded and unarchived files, e.g. the content of
"/path/to/archive".
|
Method Summary |
void |
delete(java.util.List<java.io.File> files)
|
java.io.File |
getUploadDirectory()
|
java.util.List<java.io.File> |
list()
|
java.util.List<java.io.File> |
listContent(java.io.File file,
boolean relativePaths)
|
void |
unarchiveFiles(java.util.List<java.io.File> files,
java.util.List<java.lang.String> errors)
|
java.util.List<java.io.File> |
upload(java.util.List<org.apache.commons.fileupload.FileItem> fileItems,
java.util.List<java.lang.String> errors)
|
list
java.util.List<java.io.File> list()
listContent
java.util.List<java.io.File> listContent(java.io.File file,
boolean relativePaths)
delete
void delete(java.util.List<java.io.File> files)
upload
java.util.List<java.io.File> upload(java.util.List<org.apache.commons.fileupload.FileItem> fileItems,
java.util.List<java.lang.String> errors)
unarchiveFiles
void unarchiveFiles(java.util.List<java.io.File> files,
java.util.List<java.lang.String> errors)
getUploadDirectory
java.io.File getUploadDirectory()
Copyright © 2011. All Rights Reserved.