public class WarcDigest extends Digest
algorithm, digestAlgoLengthache, digestBytes, digestString, encoding| Modifier | Constructor and Description |
|---|---|
protected |
WarcDigest()
Package level constructor.
|
protected |
WarcDigest(String algorithm,
String digestValue)
Construct an object with the supplied parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Returns a full textual string representation of the class state.
|
digestAlgorithmLength, equals, hashCodeprotected WarcDigest()
protected WarcDigest(String algorithm, String digestValue)
algorithm - digest algorithmdigestValue - digest value in encoded format. (base16/32/64)public static WarcDigest parseWarcDigest(String labelledDigest)
labelledDigest - WARC digest header valueWarcDigest object or nullpublic 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()
public String toStringFull()
Copyright © 2011–2015. All rights reserved.