public class WarcConversion extends WarcTargetRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
WarcConversion.Builder |
WarcRecord.AbstractBuilder<R extends WarcRecord,B extends WarcRecord.AbstractBuilder<R,B>>, WarcRecord.Constructor<R extends WarcRecord>| Modifier and Type | Method and Description |
|---|---|
Optional<WarcPayload> |
payload()
Returns the payload of this record if one is present.
|
Optional<URI> |
refersTo()
The record id of the source of the conversion.
|
identifiedPayloadType, payloadDigest, target, targetURI, toString, warcinfoIDblockDigest, calculatedBlockDigest, date, id, segmentNumber, truncated, typebody, contentType, headers, serializeHeader, versionpublic Optional<WarcPayload> payload() throws IOException
WarcTargetRecordThis method returns an empty optional when the payload is undefined for this record type or if this library does not know how to parse the body in order to extract the payload. If the payload is well defined but happens to be zero bytes in length this method still returns a WarcPayload object.
payload in class WarcTargetRecordIOExceptionCopyright © 2023. All rights reserved.