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(java.util.List<java.lang.String> paths)
           
 java.util.List<java.io.File> list()
           
 java.util.List<java.io.File> listContent(java.lang.String path, boolean relativePaths)
           
 java.util.List<java.io.File> upload(java.util.List<org.apache.commons.fileupload.FileItem> fileItems, java.util.List<java.lang.String> errors)
           
 

Method Detail

list

java.util.List<java.io.File> list()

listContent

java.util.List<java.io.File> listContent(java.lang.String path,
                                         boolean relativePaths)

delete

void delete(java.util.List<java.lang.String> paths)

upload

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


Copyright © 2010. All Rights Reserved.