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(String path)
           
 int delete(String pattern)
           
 List<FileInfo> getFiles(int startFile, int pageSize)
           
 Resource getResource(String path)
           
 boolean publish(FileInfo target)
           
 

Method Detail

createFile

FileInfo createFile(String path)
                    throws IOException
Throws:
IOException

publish

boolean publish(FileInfo target)
                throws IOException
Throws:
IOException

getFiles

List<FileInfo> getFiles(int startFile,
                        int pageSize)
                        throws IOException
Throws:
IOException

countFiles

int countFiles()

delete

int delete(String pattern)
           throws IOException
Throws:
IOException

getResource

Resource getResource(String path)


Copyright © 2011. All Rights Reserved.