@Test public void testWriteFromSameBlobProvier() throws IOException { String key1 = bs.writeBlob(blobContext(ID1, FOO)); assertKey(ID1, key1); BlobInfo blobInfo = new BlobInfo(); blobInfo.key = "test:" + key1; Blob blob = new SimpleManagedBlob(blobInfo); String key2 = bs.writeBlob(new BlobContext(blob, ID2, XPATH)); assertKey(ID2, key2); }
@Override public String writeBlob(BlobContext blobContext) throws IOException { BlobWriteContext blobWriteContext = keyStrategy.getBlobWriteContext(blobContext); return writeBlob(blobWriteContext); }
AbstractBlobStore implements BlobStore { @Override public String writeBlob(BlobContext blobContext) throws IOException { BlobWriteContext blobWriteContext = keyStrategy.getBlobWriteContext(blobContext); return writeBlob(blobWriteContext); } }
AbstractBlobStore implements BlobStore { @Override public String writeBlob(BlobContext blobContext) throws IOException { BlobWriteContext blobWriteContext = keyStrategy.getBlobWriteContext(blobContext); return writeBlob(blobWriteContext); } AbstractBlobStore(String name, KeyStrategy keyStrategy); }
AbstractBlobStore implements BlobStore { @Override public String writeBlob(BlobContext blobContext) throws IOException { BlobWriteContext blobWriteContext = keyStrategy.getBlobWriteContext(blobContext); return writeBlob(blobWriteContext); } AbstractBlobStore(String name, KeyStrategy keyStrategy); @Override String getName(); @Override boolean hasVersioning(); @Override KeyStrategy getKeyStrategy(); @Override BlobStore unwrap(); @Override String writeBlob(BlobContext blobContext); @Override void writeBlobProperties(BlobUpdateContext blobUpdateContext); @Override void deleteBlob(BlobContext blobContext); @Override boolean copyBlobIsOptimized(BlobStore sourceStore); static String setByteRangeInKey(String key, ByteRange byteRange); static ByteRange getByteRangeFromKey(MutableObject<String> keyHolder); void transfer(BlobWriteContext blobWriteContext, Path dest); void transfer(BlobWriteContext blobWriteContext, OutputStream out); @SuppressWarnings("resource") void transfer(InputStream in, OutputStream out, WriteObserver writeObserver); }
AbstractBlobStore implements BlobStore { @Override public String writeBlob(BlobContext blobContext) throws IOException { BlobWriteContext blobWriteContext = keyStrategy.getBlobWriteContext(blobContext); return writeBlob(blobWriteContext); } AbstractBlobStore(String name, KeyStrategy keyStrategy); @Override String getName(); @Override boolean hasVersioning(); @Override KeyStrategy getKeyStrategy(); @Override BlobStore unwrap(); @Override String writeBlob(BlobContext blobContext); @Override void writeBlobProperties(BlobUpdateContext blobUpdateContext); @Override void deleteBlob(BlobContext blobContext); @Override boolean copyBlobIsOptimized(BlobStore sourceStore); static String setByteRangeInKey(String key, ByteRange byteRange); static ByteRange getByteRangeFromKey(MutableObject<String> keyHolder); void transfer(BlobWriteContext blobWriteContext, Path dest); void transfer(BlobWriteContext blobWriteContext, OutputStream out); @SuppressWarnings("resource") void transfer(InputStream in, OutputStream out, WriteObserver writeObserver); static final char BYTE_RANGE_SEP; }