Package com.intridea.io.vfs.operations

Examples of com.intridea.io.vfs.operations.IMD5HashGetter


    public void getMD5Hash() throws NoSuchAlgorithmException, FileNotFoundException, IOException {
        FileObject backup = fsManager.resolveFile("s3://" + bucketName + "/test-place/backup.zip");

        assertTrue(backup.getFileOperations().hasOperation(IMD5HashGetter.class));

        IMD5HashGetter md5Getter = (IMD5HashGetter) backup.getFileOperations().getOperation(IMD5HashGetter.class);

        String md5Remote = md5Getter.getMD5Hash();

        Assert.assertNotNull(md5Remote);

        final File backupFile = new File(BACKUP_ZIP);
View Full Code Here

TOP

Related Classes of com.intridea.io.vfs.operations.IMD5HashGetter

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.