import java.security.MessageDigest;
import java.util.zip.Checksum;
-import org.argeo.ArgeoException;
+import org.argeo.util.internal.UtilsException;
/** Allows to fine tune how files are read. */
public class ChecksumFactory {
}
}
} catch (Exception e) {
- throw new ArgeoException("Cannot digest " + path, e);
+ throw new UtilsException("Cannot digest " + path, e);
}
}
}
return crc.getValue();
} catch (Exception e) {
- throw new ArgeoException("Cannot checksum " + path, e);
+ throw new UtilsException("Cannot checksum " + path, e);
} finally {
long duration = System.currentTimeMillis() - begin;
System.out.println(duration / 1000 + "s");