Examples of SHA1sum()


Examples of com.ettrema.zsync.SHA1.SHA1sum()

  //@Test
  public void test_LocalOnly() throws FileNotFoundException, Exception {
    System.out.println("--------------------- test1 -----------------------");
    System.out.println("source file: " + fIn.getAbsolutePath());
    SHA1 sha = new SHA1(fIn);
    String actual = sha.SHA1sum();
    System.out.println("checksum of source file: " + actual + " - length: " + fIn.length());

    File metaFile = metaFileMaker.make("/test", 32, fIn);
    System.out.println("generated meta file: " + metaFile.getAbsolutePath());
    LocalFileRangeLoader rangeLoader = new LocalFileRangeLoader(fIn);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.