public class ArcReaderUncompressed extends ArcReader
| Modifier and Type | Field and Description |
|---|---|
protected ByteCountingPushBackInputStream |
in
ARC file
ByteCountingPushBackInputStream. |
static int |
PUSHBACK_BUFFER_SIZE
Buffer size used by
PushbackInputStream. |
protected long |
startOffset
Start offset of current or next valid record.
|
arpCallback, bBlockDigest, bIsCompliant, blockDigestAlgorithm, blockDigestEncoding, bPayloadDigest, bStrict, consumed, currentRecord, diagnostics, errors, fieldParsers, iteratorExceptionThrown, lineReader, payloadDigestAlgorithm, payloadDigestEncoding, payloadHeaderMaxSize, recordHeaderMaxSize, records, uriProfile, versionHeader, warnings| Constructor and Description |
|---|
ArcReaderUncompressed()
This constructor is used to get random access to records.
|
ArcReaderUncompressed(ByteCountingPushBackInputStream in)
Construct reader using the supplied input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close current record resource(s) and input stream(s).
|
long |
getConsumed()
Get number of bytes consumed by this reader.
|
ArcRecordBase |
getNextRecord()
Parses and gets the next ARC record.
|
ArcRecordBase |
getNextRecordFrom(java.io.InputStream rin,
long offset)
Parses and gets the next ARC record.
|
ArcRecordBase |
getNextRecordFrom(java.io.InputStream rin,
long offset,
int buffer_size)
Parses and gets the next ARC record.
|
long |
getOffset()
Get the current offset in the ARC
InputStream. |
long |
getStartOffset()
Get the offset of the current ARC record or -1 if none have been read.
|
boolean |
isCompressed()
Is this reader assuming GZip compressed input.
|
protected void |
recordClosed()
Callback method called when the payload has been processed.
|
getArcRecordParserCallback, getBlockDigestAlgorithm, getBlockDigestEnabled, getBlockDigestEncoding, getIteratorExceptionThrown, getPayloadDigestAlgorithm, getPayloadDigestEnabled, getPayloadDigestEncoding, getPayloadHeaderMaxSize, getRecordHeaderMaxSize, getUriProfile, init, isCompliant, isStrict, iterator, reset, setArcRecordParserCallback, setBlockDigestAlgorithm, setBlockDigestEnabled, setBlockDigestEncoding, setPayloadDigestAlgorithm, setPayloadDigestEnabled, setPayloadDigestEncoding, setPayloadHeaderMaxSize, setRecordHeaderMaxSize, setStrict, setUriProfilepublic static final int PUSHBACK_BUFFER_SIZE
PushbackInputStream.protected ByteCountingPushBackInputStream in
ByteCountingPushBackInputStream.protected long startOffset
public ArcReaderUncompressed()
public ArcReaderUncompressed(ByteCountingPushBackInputStream in)
in - ARC file input streampublic boolean isCompressed()
ArcReaderisCompressed in class ArcReaderpublic void close()
ArcReaderprotected void recordClosed()
ArcReaderrecordClosed in class ArcReaderpublic long getStartOffset()
ArcReadergetStartOffset in class ArcReaderpublic long getOffset()
ArcReaderInputStream.getOffset in class ArcReaderInputStreamArcRecordBase.getOffset()public long getConsumed()
ArcReadergetConsumed in class ArcReaderpublic ArcRecordBase getNextRecord() throws java.io.IOException
ArcReadergetNextRecord in class ArcReaderjava.io.IOException - I/O exception in reading processpublic ArcRecordBase getNextRecordFrom(java.io.InputStream rin, long offset) throws java.io.IOException
ArcReadergetNextRecordFrom in class ArcReaderrin - ARC record InputStreamoffset - offset provided by callerjava.io.IOException - I/O exception in reading processpublic ArcRecordBase getNextRecordFrom(java.io.InputStream rin, long offset, int buffer_size) throws java.io.IOException
ArcReadergetNextRecordFrom in class ArcReaderrin - ARC record InputStreamoffset - offset provided by callerbuffer_size - size of buffer used to wrap InputStreamjava.io.IOException - I/O exception in reading processCopyright © 2011–2022. All rights reserved.