public interface StreamingObjects
extends com.salesforce.cantor.Objects
Objects interface to implement storing/streaming objects that are too large
to store/get as whole byte[].| Modifier and Type | Method and Description |
|---|---|
void |
store(String namespace,
String key,
InputStream stream,
long length)
Stores the given object by streaming the content to the underlying storage
|
InputStream |
stream(String namespace,
String key)
Gets the object corresponding to the given namespace/key as an
InputStream |
void store(String namespace, String key, InputStream stream, long length) throws IOException
namespace - the namespace to store inkey - the key for the objectstream - the content of the object as an InputStreamlength - the full length of the contentIOExceptionInputStream stream(String namespace, String key) throws IOException
InputStreamnamespace - the namespace of the objectkey - the key of the objectInputStream for the stored object/null if it doesn't existIOExceptionCopyright © 2021. All rights reserved.