public interface MainStorageInterface
Modifier and Type | Method and Description |
---|---|
void |
delete(DsInfo dsInfo)
Deletes the files of the specified data set.
|
void |
delete(String location)
Deletes the specified file
|
boolean |
exists(DsInfo dsInfo)
See if the data set exists.
|
InputStream |
get(String location,
String createId,
String modId)
Return a stream of data from the specified data file
|
String |
put(DsInfo dsInfo,
String name,
InputStream inputStream)
Store the specified data file and return information about the file
|
void |
put(InputStream inputStream,
String location)
Store the data file at the specified location
|
void delete(DsInfo dsInfo) throws IOException
dsInfo
- describes the data set with the files to be deletedIOException
void delete(String location) throws IOException
location
- location of the data file to be deletedIOException
boolean exists(DsInfo dsInfo) throws IOException
dsInfo
- describes the data set being queriedIOException
InputStream get(String location, String createId, String modId) throws IOException
location
- location of the data file to be returnedcreator
- the icat user name of the creator of this datafile. This is provided so that the
implementation can choose whether or not to trust the ICAT datafile object which
holds this location field.string
- IOException
String put(DsInfo dsInfo, String name, InputStream inputStream) throws IOException
dsInfo
- describes the data set to which the data file should be addedname
- name of file within data setinputStream
- stream of data to storeIOException
void put(InputStream inputStream, String location) throws IOException
inputStream
- stream of data to storelocation
- where to store the fileIOException
Copyright © 2014 The ICAT Collaboration. All rights reserved.