| Modifier and Type | Class and Description |
|---|---|
static interface |
Digester.Digestible
A marker interface for objects that can be digested.
|
| Constructor and Description |
|---|
Digester()
Default ctor.
|
Digester(UUID namespace)
A type 5 uuid is namespace + sha1; namespace in our case is an uuid.
|
| Modifier and Type | Method and Description |
|---|---|
Digester |
copy() |
Digester |
digest(boolean b)
Updates the digest with a boolean.
|
Digester |
digest(byte[] bytes)
Updates the digest with a bytes array.
|
Digester |
digest(char c)
Updates the digest with a char.
|
Digester |
digest(Date date)
Updates the digest with a date.
|
Digester |
digest(Digester.Digestible digestible)
Updates the digest with an object that describes how it digests.
|
Digester |
digest(double f8)
Updates the digest with a double.
|
Digester |
digest(InputStream input)
Updates the digest with a stream.
|
Digester |
digest(int i4)
Updates the digest with an integer.
|
Digester |
digest(long l8)
Updates the digest with a long.
|
Digester |
digest(Object obj)
Updates the digest with any (serializable) object.
|
Digester |
digest(String str)
Updates the digest with a string.
|
Digester |
digest(URI uri)
Updates the digest with an uuid.
|
Digester |
digest(UUID uid)
Updates the digest with an uuid.
|
UUID |
getUUID()
Computes the version tag from this digester.
|
public Digester(UUID namespace)
namespace - the uuid namespacepublic Digester()
Digester(UUID), uuid that is easily created
using UUID.nameUUIDFromBytes(byte[]) from any name/uri you might desire.public Digester copy()
public UUID getUUID()
This uses the current message digest state and resets it.
public Digester digest(boolean b)
b - the booleanpublic Digester digest(char c)
c - the charpublic Digester digest(byte[] bytes)
bytes - the bytespublic Digester digest(int i4)
i4 - the intpublic Digester digest(long l8)
l8 - the longpublic Digester digest(double f8)
f8 - the doublepublic Digester digest(Date date)
date - the datepublic Digester digest(String str)
str - the stringpublic Digester digest(UUID uid)
uid - the uuidpublic Digester digest(URI uri)
uri - the uripublic Digester digest(Digester.Digestible digestible)
digestible - the objectpublic Digester digest(InputStream input)
input - the streamCopyright © 2024 The Apache Software Foundation. All rights reserved.