public class ArcRecord extends ArcRecordBase
| Modifier and Type | Field and Description |
|---|---|
static int |
TOSTRING_BUFFER_SIZE
Buffer size used in toString().
|
bClosed, bHasPseudoEmptyPayload, bIsCompliant, bPayloadClosed, computedBlockDigest, computedPayloadDigest, consumed, diagnostics, excessiveMetadata, header, httpHeader, in, nlp, payload, reader, recordType, RT_ARC_RECORD, RT_VERSION_BLOCK, startOffset, trailingNewLines, version, versionHeader| Modifier | Constructor and Description |
|---|---|
protected |
ArcRecord()
Protected constructor to force instantiation of record header
from stream.
|
| Modifier and Type | Method and Description |
|---|---|
static ArcRecord |
createRecord(ArcWriter writer)
Create and initialize a new
ArcRecord for writing. |
static ArcRecord |
parseArcRecord(ArcReader reader,
Diagnostics<Diagnosis> diagnostics,
ArcHeader header,
ByteCountingPushBackInputStream in)
Creates a new
ArcRecord based on the supplied header and
starts processing the payload, if present. |
protected void |
processPayload(ByteCountingPushBackInputStream in,
ArcReader reader)
Process the ARC record stream for possible payload data.
|
java.lang.String |
toString() |
addErrorDiagnosis, close, getArchiveDate, getArchiveDateStr, getArchiveLength, getArchiveLengthStr, getChecksum, getConsumed, getContentType, getContentTypeStr, getFileName, getHttpHeader, getInetAddress, getIpAddress, getLocation, getOffset, getOffsetStr, getPayload, getPayloadContent, getResultCode, getResultCodeStr, getScheme, getStartOffset, getUrl, getUrlStr, getVersion, hasPayload, hasPseudoEmptyPayload, isClosed, isCompliant, isValidStreamOfCRLF, parseRecord, payloadClosedpublic static final int TOSTRING_BUFFER_SIZE
protected ArcRecord()
public static ArcRecord createRecord(ArcWriter writer)
ArcRecord for writing.writer - writer which shall be usedArcRecord prepared for writingpublic static ArcRecord parseArcRecord(ArcReader reader, Diagnostics<Diagnosis> diagnostics, ArcHeader header, ByteCountingPushBackInputStream in) throws java.io.IOException
ArcRecord based on the supplied header and
starts processing the payload, if present.reader - ArcReader used, with access to user defined
optionsdiagnostics - diagnostics used to report errors and/or warningsheader - record header that has already been processedin - InputStream used to read possible payloadArcRecordjava.io.IOException - I/O exception while processing possible payloadprotected void processPayload(ByteCountingPushBackInputStream in, ArcReader reader) throws java.io.IOException
ArcRecordBaseprocessPayload in class ArcRecordBasein - ARC record InputStreamreader - ArcReader used, with access to user defined
optionsjava.io.IOException - I/O exception in the parsing processpublic java.lang.String toString()
toString in class ArcRecordBaseCopyright © 2011–2022. All rights reserved.