| Modifier and Type | Class and Description |
|---|---|
class |
ArcReaderCompressed
ARC Reader implementation for reading GZip compressed files.
|
class |
ArcReaderUncompressed
ARC Reader implementation for reading uncompressed files.
|
| Modifier and Type | Field and Description |
|---|---|
protected ArcReader |
ArcRecordBase.reader
Reader instance used, required for file compliance.
|
protected ArcReader |
ArcHeader.reader
Associated WarcReader context.
|
| Modifier and Type | Method and Description |
|---|---|
static ArcReader |
ArcReaderFactory.getReader(java.io.InputStream in)
Creates a new
ArcReader from an InputStream. |
static ArcReader |
ArcReaderFactory.getReader(java.io.InputStream in,
int buffer_size)
Creates a new
ArcReader from an InputStream
wrapped by a BufferedInputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
ArcRecordParserCallback.arcParsedRecordHeader(ArcReader reader,
long startOffset,
ArcHeader header) |
static ArcHeader |
ArcHeader.initHeader(ArcReader reader,
long startOffset,
Diagnostics<Diagnosis> diagnostics)
Create and initialize a new
ArcHeader for reading. |
static ArcRecord |
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. |
static ArcRecordBase |
ArcRecordBase.parseRecord(ByteCountingPushBackInputStream in,
ArcReader reader)
Reads from the input stream and tries to parse and identify an
ArcRecord or ArcVersionBlock record. |
static ArcVersionBlock |
ArcVersionBlock.parseVersionBlock(ArcReader reader,
Diagnostics<Diagnosis> diagnostics,
ArcHeader header,
ArcFieldParsers fieldParsers,
ByteCountingPushBackInputStream in)
Creates a new
VersionBlock based on the supplied header and
the version block in the payload, if present. |
protected abstract void |
ArcRecordBase.processPayload(ByteCountingPushBackInputStream in,
ArcReader reader)
Process the ARC record stream for possible payload data.
|
protected void |
ArcVersionBlock.processPayload(ByteCountingPushBackInputStream in,
ArcReader reader)
An ARC version block payload must include a version line and a
block description line and in v1.1 the rest of the payload consists
of XML formatted metadata related to the harvesters configuration.
|
protected void |
ArcRecord.processPayload(ByteCountingPushBackInputStream in,
ArcReader reader) |
Copyright © 2011–2022. All rights reserved.