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 is unarchived to the directory with the corresponding name af the archive (e.g. for archive path "/path/to/archive.zip", the output directory path will be "/path/to/archive". The manager also allows to list the content of a uploaded and unarchived file paths, e.g. the content of "/path/to/archive".


Method Summary
 void delete(List<String> paths)
           
 List<File> list()
           
 List<File> listContent(String path, boolean relativePaths)
           
 List<File> upload(List<org.apache.commons.fileupload.FileItem> fileItems, List<String> errors)
           
 

Method Detail

list

List<File> list()

listContent

List<File> listContent(String path,
                       boolean relativePaths)

delete

void delete(List<String> paths)

upload

List<File> upload(List<org.apache.commons.fileupload.FileItem> fileItems,
                  List<String> errors)


Copyright © 2010. All Rights Reserved.