public abstract static class WarcRecord.AbstractBuilder<R extends WarcRecord,B extends WarcRecord.AbstractBuilder<R,B>> extends Message.AbstractBuilder<R,B>
bodyChannel, headerMap, version| Constructor and Description |
|---|
AbstractBuilder(String type) |
| Modifier and Type | Method and Description |
|---|---|
B |
blockDigest(String algorithm,
String value) |
B |
blockDigest(WarcDigest digest) |
protected R |
build(WarcRecord.Constructor<R> constructor) |
B |
date(java.time.Instant date)
The instant that data capture for this record began.
|
B |
recordId(URI recordId) |
B |
recordId(UUID uuid) |
B |
segmentNumber(long segmentNumber) |
B |
truncated(WarcTruncationReason truncationReason) |
B |
version(MessageVersion version)
Sets the protocol version of this message or record.
|
addHeader, addHeaders, body, body, build, setHeaderpublic AbstractBuilder(String type)
public B date(java.time.Instant date)
public B blockDigest(WarcDigest digest)
public B truncated(WarcTruncationReason truncationReason)
public B segmentNumber(long segmentNumber)
public B version(MessageVersion version)
Message.AbstractBuilderversion in class Message.AbstractBuilder<R extends WarcRecord,B extends WarcRecord.AbstractBuilder<R,B>>protected R build(WarcRecord.Constructor<R> constructor)
Copyright © 2023. All rights reserved.