Class HeritrixArchiveRecordWrapper
- java.lang.Object
-
- dk.netarkivet.common.utils.archive.ArchiveRecordBase
-
- dk.netarkivet.common.utils.archive.HeritrixArchiveRecordWrapper
-
public class HeritrixArchiveRecordWrapper extends ArchiveRecordBase
Heritrix wrapper implementation of the abstract archive record interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected ArchiveHeaderBase
header
The wrapper archive header.protected org.archive.io.ArchiveRecord
record
The original Heritrix record, since it is also the record payload input stream.-
Fields inherited from class dk.netarkivet.common.utils.archive.ArchiveRecordBase
bIsArc, bIsWarc
-
-
Constructor Summary
Constructors Constructor Description HeritrixArchiveRecordWrapper(org.archive.io.ArchiveRecord record)
Construct a Heritrix record wrapper object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveHeaderBase
getHeader()
Return the wrapped Heritrix archive headerInputStream
getInputStream()
Return the payload input stream.-
Methods inherited from class dk.netarkivet.common.utils.archive.ArchiveRecordBase
wrapArchiveRecord
-
-
-
-
Field Detail
-
record
protected org.archive.io.ArchiveRecord record
The original Heritrix record, since it is also the record payload input stream.
-
header
protected ArchiveHeaderBase header
The wrapper archive header.
-
-
Method Detail
-
getHeader
public ArchiveHeaderBase getHeader()
Description copied from class:ArchiveRecordBase
Return the wrapped Heritrix archive header- Specified by:
getHeader
in classArchiveRecordBase
- Returns:
- the wrapped Heritrix archive header
-
getInputStream
public InputStream getInputStream()
Description copied from class:ArchiveRecordBase
Return the payload input stream.- Specified by:
getInputStream
in classArchiveRecordBase
- Returns:
- the payload input stream
-
-