|
|||||||||||
| 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
A GZIP checksum type - Adler or CRC.
| Field Summary | |
static java.lang.String |
ADLER
Adler checksum. |
static java.lang.String |
CRC
CRC checksum. |
| 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 |
public static final java.lang.String ADLER
public static final java.lang.String CRC
| Constructor Detail |
public GZIPChecksum(java.lang.String type)
GZIPChecksum of the specified type.
type - with value GZIPChecksum.ADLER for
Adler or GZIPChecksum.CRC for CRC.
java.lang.IllegalArgumentException - If type is neither GZIPChecksum.ADLER
or GZIPChecksum.CRC| Method Detail |
public void setType(java.lang.String type)
type - with value GZIPChecksum.ADLER for
Adler or GZIPChecksum.CRC for CRC.
java.lang.IllegalArgumentException - If type is neither GZIPChecksum.ADLER
or GZIPChecksum.CRCpublic void setCRC()
public void setAdler()
public boolean isAdler()
ADLER.public boolean isCRC()
CRC.public java.lang.String getAsString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||