Class ArchiveRecordBase
- java.lang.Object
-
- dk.netarkivet.common.utils.archive.ArchiveRecordBase
-
- Direct Known Subclasses:
HeritrixArchiveRecordWrapper
public abstract class ArchiveRecordBase extends java.lang.Object
Base class for unified ARC/WARC record API:
-
-
Constructor Summary
Constructors Constructor Description ArchiveRecordBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ArchiveHeaderBase
getHeader()
Return the wrapped Heritrix archive headerabstract java.io.InputStream
getInputStream()
Return the payload input stream.static ArchiveRecordBase
wrapArchiveRecord(org.archive.io.ArchiveRecord archiveRecord)
Factory method for creating a wrapped Heritrix record.
-
-
-
Constructor Detail
-
ArchiveRecordBase
public ArchiveRecordBase()
-
-
Method Detail
-
getHeader
public abstract ArchiveHeaderBase getHeader()
Return the wrapped Heritrix archive header- Returns:
- the wrapped Heritrix archive header
-
getInputStream
public abstract java.io.InputStream getInputStream()
Return the payload input stream.- Returns:
- the payload input stream
-
wrapArchiveRecord
public static ArchiveRecordBase wrapArchiveRecord(org.archive.io.ArchiveRecord archiveRecord)
Factory method for creating a wrapped Heritrix record.- Parameters:
archiveRecord
- Heritrix archive record- Returns:
- wrapped Heritrix record
-
-