Package com.levigo.jadice.server.rest
Interface ContentStore
-
- All Known Implementing Classes:
SimpleContentStore
public interface ContentStore
AContentStore
is the backing implementation for the REST basedFileService
.- Since:
- jadice server 5.6.0.0
- See Also:
FileService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(String id)
Delete aStream
Stream
retrieveStream(String id)
Retrieve aStream
String
storeStream(Stream stream)
Store aStream
-
-
-
Method Detail
-
storeStream
String storeStream(Stream stream) throws IOException
Store aStream
- Parameters:
stream
- theStream
to store- Returns:
- a unique id under it has been stored
- Throws:
IOException
- if the content could not be stored.- See Also:
retrieveStream(String)
,delete(String)
-
retrieveStream
Stream retrieveStream(String id) throws IOException
Retrieve aStream
- Parameters:
id
- the ID of the content- Returns:
- the
Stream
which has been stored under the given ID - Throws:
IOException
- if the content could not be retrieved.- See Also:
storeStream(Stream)
-
delete
void delete(String id) throws IOException
Delete aStream
- Parameters:
id
- the ID of the content- Throws:
IOException
- if the content could not be deleted.- See Also:
storeStream(Stream)
-
-