public interface ExecutionTarget
ExecutionTarget is an output target for calculated digests.| Modifier and Type | Method and Description |
|---|---|
void |
close(String subPath)
Close the target.
|
void |
init()
Initialize the target.
|
void |
write(String digest,
ChecksumFile file,
String algorithm)
Write the hashcode calculated for the given file and algorithm to the target.
|
void init() throws ExecutionTargetInitializationException
Should be called before first call to write(String, ChecksumFile, String).
ExecutionTargetInitializationException - if an error occured while initializing the target.void write(String digest, ChecksumFile file, String algorithm) throws ExecutionTargetWriteException
digest - the digest to write.file - the file for which the digest was calculated.algorithm - the algorithm used to calculate the digest.ExecutionTargetWriteException - if an error occured while writing to the target.void close(String subPath) throws ExecutionTargetCloseException
Should be called after last call to write(String, ChecksumFile, String).
subPath - ExecutionTargetCloseException - if an error occured while closing the target.Copyright © 2010–2016. All rights reserved.