@Test public void testDecorate() throws Exception { final NullInputStream n = new NullInputStream(1L); assertSame(NullInputStream.class, new SwiftSmallObjectUploadFeature(new SwiftWriteFeature( session, new SwiftRegionService(session))).decorate(n, null).getClass()); }
@Override protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException { if(null == digest) { log.warn("MD5 calculation disabled"); return super.decorate(in, null); } else { return new DigestInputStream(super.decorate(in, digest), digest); } }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException { if(null == digest) { log.warn("MD5 calculation disabled"); return super.decorate(in, null); } else { return new DigestInputStream(super.decorate(in, digest), digest); } } }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException { if(null == digest) { log.warn("MD5 calculation disabled"); return super.decorate(in, null); } else { return new DigestInputStream(super.decorate(in, digest), digest); } } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer); }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException { if(null == digest) { log.warn("MD5 calculation disabled"); return super.decorate(in, null); } else { return new DigestInputStream(super.decorate(in, digest), digest); } } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer);  }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected InputStream decorate(final InputStream in, final MessageDigest digest) throws IOException { if(null == digest) { log.warn("MD5 calculation disabled"); return super.decorate(in, null); } else { return new DigestInputStream(super.decorate(in, digest), digest); } } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer);   }