public final class HashedFile extends HashedEntry
HashedEntry.TypeStreamObject.Adapter<O extends StreamObject>| Modifier and Type | Field and Description |
|---|---|
static SecurityHelper.DigestAlgorithm |
DIGEST_ALGO |
long |
size |
flag| Constructor and Description |
|---|
HashedFile(HInput input) |
HashedFile(long size,
byte[] digest) |
HashedFile(java.nio.file.Path file,
long size,
boolean digest) |
| Modifier and Type | Method and Description |
|---|---|
HashedEntry.Type |
getType() |
boolean |
isSame(HashedFile o) |
boolean |
isSame(java.nio.file.Path file,
boolean digest) |
boolean |
isSameDigest(byte[] digest) |
long |
size() |
void |
write(HOutput output) |
writepublic static final SecurityHelper.DigestAlgorithm DIGEST_ALGO
public final long size
public HashedFile(HInput input) throws java.io.IOException
java.io.IOExceptionpublic HashedFile(long size,
byte[] digest)
public HashedFile(java.nio.file.Path file,
long size,
boolean digest)
throws java.io.IOException
java.io.IOExceptionpublic HashedEntry.Type getType()
getType in class HashedEntrypublic boolean isSame(HashedFile o)
public boolean isSame(java.nio.file.Path file,
boolean digest)
throws java.io.IOException
java.io.IOExceptionpublic boolean isSameDigest(byte[] digest)
public long size()
size in class HashedEntrypublic void write(HOutput output) throws java.io.IOException
write in class StreamObjectjava.io.IOException