|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwat.common.Digest
org.jwat.warc.WarcDigest
public class WarcDigest
This class represents the parsed and format validated information provided from a WARC digest header value.
| Field Summary |
|---|
| Fields inherited from class org.jwat.common.Digest |
|---|
algorithm, digestAlgoLengthache, digestBytes, digestString, encoding |
| Constructor Summary | |
|---|---|
protected |
WarcDigest()
Package level constructor. |
protected |
WarcDigest(String algorithm,
String digestValue)
Construct an object with the supplied parameters. |
| Method Summary | |
|---|---|
static WarcDigest |
createWarcDigest(String algorithm,
byte[] digestBytes,
String encoding,
String digestValue)
Create an object with the supplied parameters. |
static WarcDigest |
parseWarcDigest(String labelledDigest)
Parse and validate the format of a WARC digest header value. |
String |
toString()
Returns a header representation of the class state. |
String |
toStringFull()
|
| Methods inherited from class org.jwat.common.Digest |
|---|
digestAlgorithmLength, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected WarcDigest()
protected WarcDigest(String algorithm,
String digestValue)
algorithm - digest algorithmdigestValue - digest value in encoded format. (base16/32/64)| Method Detail |
|---|
public static WarcDigest parseWarcDigest(String labelledDigest)
labelledDigest - WARC digest header value
WarcDigest object or null
public static WarcDigest createWarcDigest(String algorithm,
byte[] digestBytes,
String encoding,
String digestValue)
algorithm - digest algorithmdigestBytes - digest in byte formencoding - encoding useddigestValue - digest value in encoded form.public String toString()
toString in class Objectpublic String toStringFull()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||