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".
list
List<File> list()
listContent
List<File> listContent(File file,
boolean relativePaths)
delete
void delete(List<File> files)
upload
List<File> upload(List<org.apache.commons.fileupload.FileItem> fileItems,
List<String> errors)
unarchiveFiles
void unarchiveFiles(List<File> files,
List<String> errors)
getUploadDirectory
File getUploadDirectory()
Copyright © 2011. All Rights Reserved.