Package nl.knaw.dans.bagit.hash
Class Hasher.ChunkResult
java.lang.Object
nl.knaw.dans.bagit.hash.Hasher.ChunkResult
- Enclosing class:
- Hasher
Represents the result of a chunk operation when processing data for hashing. A chunk operation can have various results, such as a successful read, a redirection to another location, or
successful processing of a complete stream.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateChunkResult(Hasher.ChunkResultType type, int bytesRead, long totalSize, String location, String hash) -
Method Summary
Modifier and TypeMethodDescription(package private) static Hasher.ChunkResultfullStream(String hash) (package private) static Hasher.ChunkResult(package private) static Hasher.ChunkResultsuccess(int bytesRead, long totalSize)
-
Field Details
-
type
-
bytesRead
final int bytesRead -
totalSize
final long totalSize -
location
-
hash
-
-
Constructor Details
-
ChunkResult
private ChunkResult(Hasher.ChunkResultType type, int bytesRead, long totalSize, String location, String hash)
-
-
Method Details
-
success
-
redirect
-
fullStream
-