| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.encoding.HashCalculator |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ADLER32 | ||||||||||
| int | CRC32 | ||||||||||
| int | MD5 | ||||||||||
| int | SHA1 | ||||||||||
| int | SHA256 | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| HashCalculator(InputStream in, int flags) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| final static Long |
adler32(InputStream in)
Utility method.
| ||||||||||
| boolean |
compute()
Compute the requested digests and stream size.
| ||||||||||
| final static Long |
crc32(InputStream in)
Utility method.
| ||||||||||
| long | getAdler32() | ||||||||||
| long | getCrc32() | ||||||||||
| byte[] | getMd5() | ||||||||||
| byte[] | getSha1() | ||||||||||
| byte[] | getSha256() | ||||||||||
| long | getSize() | ||||||||||
| final static byte[] |
md5(InputStream in)
Utility method.
| ||||||||||
| final static byte[] |
sha1(InputStream in)
Utility method.
| ||||||||||
| final static byte[] |
sha256(InputStream in)
Utility method.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Utility method.
Compute the requested digests and stream size.
| IOException | on stream IO error |
|---|
Utility method.
Utility method.
Utility method.
Utility method.