public interface OutputStore
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String fileName)
Deletes a file from the output store
|
boolean |
exists(java.lang.String fileName) |
java.lang.String |
getServiceVirtualOutputDir() |
java.util.List |
listFiles()
List all files in the service's output directory
|
java.util.List |
listFiles(java.lang.String subDir)
List all the files in a sub-directory of a service's output directory
|
void |
read(java.lang.String fileName,
java.io.OutputStream out)
Reads the file from the Output
|
void |
write(java.lang.String fileName,
java.io.InputStream in,
long size)
Writes the input stream to the specified file.
|
void write(java.lang.String fileName, java.io.InputStream in, long size) throws java.lang.IllegalArgumentException, java.io.IOException
fileName
- can contain subdirectoriesin
- the origin file as an InputStreamsize
- the size of the origin filejava.lang.IllegalArgumentException
- if any of the args is empty or nulljava.io.IOException
- if there was an error writing the input stream to the specified filevoid read(java.lang.String fileName, java.io.OutputStream out) throws java.lang.IllegalArgumentException, java.io.IOException
fileName
- can contain subdirectoriesjava.io.IOException
- if there was an error reading the filejava.lang.IllegalArgumentException
boolean exists(java.lang.String fileName) throws java.lang.IllegalArgumentException, java.io.IOException
fileName
- can contain subdirectoriesjava.lang.IllegalArgumentException
- if fileName is empty or nulljava.io.IOException
- if there was an error checking whether a file existsvoid delete(java.lang.String fileName) throws java.lang.IllegalArgumentException, java.io.IOException
fileName
- can contain subdirectoriesjava.lang.IllegalArgumentException
- if fileName is empty or nulljava.io.IOException
- if there was an error checking whether a file existsjava.util.List listFiles() throws java.io.IOException
java.io.IOException
java.util.List listFiles(java.lang.String subDir) throws java.io.IOException
subDir
- - the subdirectory to list files fromjava.io.IOException
java.lang.String getServiceVirtualOutputDir() throws java.io.IOException
java.io.IOException
- if there was an error retrieving the virtual output directory