Class CdxRecord
java.lang.Object
org.netpreserve.jwarc.cdx.CdxRecord
A single CDX record.
-
Method Summary
Modifier and TypeMethodDescriptiondate()digest()A cryptographic digest of the response payload.filename()format()Returns the CDX format of this record.get(int field) Returns the value of the given field.position()Position in bytes of the record in the WARC file.redirect()The value of the Location HTTP header for redirect responses.size()Length of the WARC record in bytes.status()HTTP response status code.surt()Returns the value of the 'normalized SURT' (N) field.target()toString()Returns this record as a space-separated string.values()Returns an unmodifiable list of the field values in this record.
-
Method Details
-
get
-
surt
Returns the value of the 'normalized SURT' (N) field. -
date
-
filename
-
target
-
targetURI
-
size
Length of the WARC record in bytes. Including headers and measured after any compression is applied. -
position
Position in bytes of the record in the WARC file. -
status
HTTP response status code. -
digest
A cryptographic digest of the response payload. Most commonly this is a SHA-1 digest in base 32 or an MD5 digest in hexadecimal. -
redirect
The value of the Location HTTP header for redirect responses. -
contentType
-
format
Returns the CDX format of this record. -
values
-
toString
-