@Override public InputStream remove(Object o) { InputStream old = get(o); String realKey = prefixer.apply(o.toString()); blobstore.removeBlob(containerName, realKey); return old; }
@Override public InputStream remove(Object o) { InputStream old = get(o); String realKey = prefixer.apply(o.toString()); blobstore.removeBlob(containerName, realKey); return old; }
/** * calculates eTag before adding the object to s3. As a side-effect of this, the content will be * copied into a byte []. * * * @see S3Client#put(String, Blob) */ @VisibleForTesting InputStream putInternal(String name, Payload payload) { InputStream returnVal = containsKey(name) ? get(name) : null; Blob blob = newBlobWithMD5(name, payload); blobstore.putBlob(containerName, blob); return returnVal; }
/** * calculates eTag before adding the object to s3. As a side-effect of this, the content will be * copied into a byte []. * * * @see S3Client#put(String, Blob) */ @VisibleForTesting InputStream putInternal(String name, Payload payload) { InputStream returnVal = containsKey(name) ? get(name) : null; Blob blob = newBlobWithMD5(name, payload); blobstore.putBlob(containerName, blob); return returnVal; }