
public final class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
computeGlobalHash(FilesystemBasedDigest digestGlobal,
FilesystemBasedDigest digestLocal,
byte[] buffer,
int size)
Compute global hash and local hash (if possible)
|
static R66File |
getFile(WaarpLogger logger,
R66Session session,
String filenameSrc,
boolean isPreStart,
boolean isSender,
boolean isThrough,
R66File file)
Change or create the R66File associated with the context
|
static byte[] |
getHash(byte[] buffer,
int size,
FilesystemBasedDigest.DigestAlgo algo,
FilesystemBasedDigest digestGlobal) |
public static R66File getFile(WaarpLogger logger, R66Session session, String filenameSrc, boolean isPreStart, boolean isSender, boolean isThrough, R66File file) throws OpenR66RunnerErrorException
logger - session - filenameSrc - new filenameisPreStart - isSender - isThrough - file - old R66File if any (might be null)OpenR66RunnerErrorExceptionpublic static byte[] getHash(byte[] buffer,
int size,
FilesystemBasedDigest.DigestAlgo algo,
FilesystemBasedDigest digestGlobal)
buffer - size - algo - for packet onlydigestGlobal - public static void computeGlobalHash(FilesystemBasedDigest digestGlobal, FilesystemBasedDigest digestLocal, byte[] buffer, int size)
digestGlobal - digestLocal - buffer - size - size of the bufferCopyright © 2009–2022 Waarp. All rights reserved.