public interface ExecutionFileStorage
store(String,
java.io.InputStream, long, java.util.Date)
and retrieve(String, java.io.OutputStream)
methods, and more
than one filetype may be stored or retrieved for the same execution.Modifier and Type | Method and Description |
---|---|
boolean |
retrieve(java.lang.String filetype,
java.io.OutputStream stream)
Write a file of the given file type to the given stream
|
boolean |
store(java.lang.String filetype,
java.io.InputStream stream,
long length,
java.util.Date lastModified)
Stores a file of the given file type, read from the given stream
|
boolean store(java.lang.String filetype, java.io.InputStream stream, long length, java.util.Date lastModified) throws java.io.IOException, ExecutionFileStorageException
filetype
- filetype or extension of the file to storestream
- the input streamlength
- the file lengthlastModified
- the file modification timejava.io.IOException
- if an IO error occursExecutionFileStorageException
- if other errors occurboolean retrieve(java.lang.String filetype, java.io.OutputStream stream) throws java.io.IOException, ExecutionFileStorageException
filetype
- key to identify stored filestream
- the output streamjava.io.IOException
- if an IO error occursExecutionFileStorageException
- if other errors occur