org.springframework.batch.admin.service
Interface FileService

All Known Implementing Classes:
LocalFileService

public interface FileService

Encapsulation of file storage and creation hiding the actual location of the files, but allowing their contents to be accessed by clients.

Author:
Dave Syer

Method Summary
 int countFiles()
           
 FileInfo createFile(java.lang.String path)
           
 int delete(java.lang.String pattern)
           
 java.util.List<FileInfo> getFiles(int startFile, int pageSize)
           
 org.springframework.core.io.Resource getResource(java.lang.String path)
           
 boolean publish(FileInfo target)
           
 

Method Detail

createFile

FileInfo createFile(java.lang.String path)
                    throws java.io.IOException
Throws:
java.io.IOException

publish

boolean publish(FileInfo target)
                throws java.io.IOException
Throws:
java.io.IOException

getFiles

java.util.List<FileInfo> getFiles(int startFile,
                                  int pageSize)
                                  throws java.io.IOException
Throws:
java.io.IOException

countFiles

int countFiles()

delete

int delete(java.lang.String pattern)
           throws java.io.IOException
Throws:
java.io.IOException

getResource

org.springframework.core.io.Resource getResource(java.lang.String path)


Copyright © 2011. All Rights Reserved.