|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.transform.ChecksumConverter
A helper class to convert Checksum
objects into
String
representations. This could be rewritten in a
far more generalised form.
Field Summary | |
static java.lang.String |
ADLER_32
String representation of the Adler32 checksum type. |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
static java.lang.String |
CRC_32
String representation of the CRC32 checksum type. |
static java.lang.String |
NONE
String representing no checksum. |
Constructor Summary | |
ChecksumConverter()
|
Method Summary | |
static java.lang.String |
convert(java.util.zip.Checksum checksum)
Converts the specified Checksum into a
corresponding String . |
static java.util.zip.Checksum |
convert(java.lang.String checksumName)
Converts the specified String representation of a
checksum into a corresponding Checksum type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final java.lang.String ADLER_32
public static final java.lang.String CRC_32
public static final java.lang.String NONE
Constructor Detail |
public ChecksumConverter()
Method Detail |
public static java.lang.String convert(java.util.zip.Checksum checksum)
Checksum
into a
corresponding String
.
checksum
- The Checksum
to convert.
String
representation or
null
if there is no known representation.public static java.util.zip.Checksum convert(java.lang.String checksumName)
String
representation of a
checksum into a corresponding Checksum
type.
checksumName
- The String
representation of the checksum.
Checksum
object or
null
if there is no corresponding object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |