Package io.crate.blob.exceptions

Examples of io.crate.blob.exceptions.DigestMismatchException


        assert md != null;
        String contentDigest = Hex.encodeHexString(md.digest());
        if (!contentDigest.equals(digest)) {
            file.delete();
            throw new DigestMismatchException(digest, contentDigest);
        }
        File newFile = container.getFile(digest);
        file.renameTo(newFile);
        return newFile;
    }
View Full Code Here

TOP

Related Classes of io.crate.blob.exceptions.DigestMismatchException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.