Class ChecksumType<C extends Checksum>
java.lang.Object
dev.latvian.mods.klib.io.checksum.ChecksumType<C>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(io.netty.buffer.ByteBuf buf) digest(byte[] input) digest(FileInfo fileInfo, @Nullable LongConsumer callback) digest(Path file, @Nullable LongConsumer callback) of(byte[] bytes) toString()static ChecksumType<?> typeOf(int id)
-
Field Details
-
TYPES
-
id
public final int id -
name
-
md
-
nil
-
size
public final int size -
fromBytes
-
codec
-
streamCodec
-
-
Constructor Details
-
ChecksumType
-
-
Method Details
-
typeOf
-
of
-
decode
-
of
-
digest
- Throws:
IOException
-
digest
- Throws:
IOException
-
digest
- Throws:
NoSuchAlgorithmException
-
read
- Throws:
IOException
-
toString
-