class 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);
        }
    }

    public  SwiftSmallObjectUploadFeature(final Write<StorageObject> writer);

}