dk.netarkivet.common.utils.archive
Class HeritrixArchiveRecordWrapper

java.lang.Object
  extended by dk.netarkivet.common.utils.archive.ArchiveRecordBase
      extended by dk.netarkivet.common.utils.archive.HeritrixArchiveRecordWrapper

public class HeritrixArchiveRecordWrapper
extends ArchiveRecordBase

Heritrix wrapper implementation of the abstract archive record interface.


Field Summary
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
HeritrixArchiveRecordWrapper(org.archive.io.ArchiveRecord record)
          Construct a Heritrix record wrapper object.
 
Method Summary
 ArchiveHeaderBase getHeader()
          Return the wrapped Heritrix archive header
 java.io.InputStream getInputStream()
          Return the payload input stream.
 
Methods inherited from class dk.netarkivet.common.utils.archive.ArchiveRecordBase
wrapArchiveRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Constructor Detail

HeritrixArchiveRecordWrapper

public HeritrixArchiveRecordWrapper(org.archive.io.ArchiveRecord record)
Construct a Heritrix record wrapper object.

Parameters:
record - Heritrix record object
Method Detail

getHeader

public ArchiveHeaderBase getHeader()
Description copied from class: ArchiveRecordBase
Return the wrapped Heritrix archive header

Specified by:
getHeader in class ArchiveRecordBase
Returns:
the wrapped Heritrix archive header

getInputStream

public java.io.InputStream getInputStream()
Description copied from class: ArchiveRecordBase
Return the payload input stream.

Specified by:
getInputStream in class ArchiveRecordBase
Returns:
the payload input stream