public class ArchiveParser extends java.lang.Object
ArchiveParserCallback)| Modifier and Type | Field and Description |
|---|---|
ArcReader |
arcReader
Access to used ARC reader to read state.
|
ArchiveRecordParserCallback |
arpCallback
Callback used to monitor and modify internal data as it is being parsed.
|
boolean |
bBlockDigestEnabled
Enable block digest calculation/validation.
|
boolean |
bPayloadDigestEnabled
Enable payload digest calculation/validation.
|
protected byte[] |
buffer
Temporary buffer.
|
static int |
DEFAULT_PUSHBASH_BUFFER_SIZE
Buffer size used to peek into the input stream.
|
static int |
DEFAULT_READER_BUFFER_SIZE
Buffer size used to read the input stream.
|
org.jwat.gzip.GzipReader |
gzipReader
Access to used GZIP reader to read state.
|
int |
payloadHeaderMaxSize
Max payload header size (http header etc.).
|
int |
recordHeaderMaxSize
Max record header size.
|
org.jwat.common.UriProfile |
uriProfile
URI profile to use.
|
WarcReader |
warcReader
Access to used WARC reader to read state.
|
| Constructor and Description |
|---|
ArchiveParser()
Construct instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
parse(java.io.File file,
ArchiveParserCallback callbacks)
Parse a file invoking the appropriate callback methods according to the input file.
|
public static final int DEFAULT_READER_BUFFER_SIZE
public static final int DEFAULT_PUSHBASH_BUFFER_SIZE
public org.jwat.common.UriProfile uriProfile
public boolean bBlockDigestEnabled
public boolean bPayloadDigestEnabled
public int recordHeaderMaxSize
public int payloadHeaderMaxSize
public ArchiveRecordParserCallback arpCallback
public org.jwat.gzip.GzipReader gzipReader
public WarcReader warcReader
protected byte[] buffer
public ArchiveParser()
public long parse(java.io.File file, ArchiveParserCallback callbacks)
file - input filecallbacks - callback handlerCopyright © 2011–2022. All rights reserved.