|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - public static interface Checksummer.Helper<T>
Helps with the conversion of T into and from its different forms needed for the operation of the checksummer.
Objects that are to be hashed must be converted into InputStream
| Method Summary | |
|---|---|
T |
asObject(String string)
The passed String back into T. |
InputStream |
asStream(T object)
Convert T into a stream of raw bytes so that it can be hashed. |
String |
asString(T object)
Covert T into a unique string representation. |
| Method Detail |
|---|
InputStream asStream(T object)
object - the object to convert.
String asString(T object)
Checksummer.write(org.dom4j.Element). It should provide
enough information to be able to restore T later in the asObject(String) method.
object - the object to convert.
T asObject(String string)
asString(Object)}.
string - the string to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||