|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.transform.GZIPChecksum
An enumerated type representing a GZIP checksum type - Adler or CRC.
Field Summary | |
static java.lang.String |
ADLER
Adler checksum. |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
static java.lang.String |
CRC
CRC checksum. |
private java.lang.String |
mType
The current checksum type. |
Constructor Summary | |
GZIPChecksum(java.lang.String type)
Create a GZIPChecksum of the specified type. |
Method Summary | |
java.lang.String |
getAsString()
Return the checksum type as a string - either adler32 or crc32 . |
boolean |
isAdler()
Is the current checksum type Adler? |
boolean |
isCRC()
Is the current checksum type CRC? |
void |
setAdler()
Set the checksum type to be Adler |
void |
setCRC()
Set the checksum type to be CRC |
void |
setType(java.lang.String type)
Set the 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
public static final java.lang.String CRC
private java.lang.String mType
Constructor Detail |
public GZIPChecksum(java.lang.String type)
GZIPChecksum
of the specified type.
type
- One of GZIPChecksum.ADLER
for
Adler or GZIPChecksum.CRC
for CRC.
java.lang.IllegalArgumentException
- If type
is neither of the two alternatives
above.Method Detail |
public void setType(java.lang.String type)
type
- One of GZIPChecksum.ADLER
for
Adler or GZIPChecksum.CRC
for CRC.
java.lang.IllegalArgumentException
- If type
is neither of the two alternatives
above.public void setCRC()
public void setAdler()
public boolean isAdler()
true
if type is ADLER
.public boolean isCRC()
true
if type is CRC
.public java.lang.String getAsString()
adler32
or crc32
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |