public abstract class ArchiveHeaderBase extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
bIsArc
Is this record from an ARC file.
|
boolean |
bIsWarc
Is this record from a WARC file.
|
Constructor and Description |
---|
ArchiveHeaderBase() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getArcDateStr()
Return the header date in the ARC string format for use in CDX output.
|
abstract File |
getArchiveFile()
Return the archive File
|
abstract Date |
getDate()
Return the header date as a
Date object. |
abstract Set<String> |
getHeaderFieldKeys()
Return a
Set of header keys. |
abstract Map<String,Object> |
getHeaderFields()
Return a
Map of all header key/value pairs. |
abstract String |
getHeaderStringValue(String key)
Return a header value string.
|
abstract Object |
getHeaderValue(String key)
Return a header value object.
|
abstract String |
getIp()
Get the IP-Address from the header.
|
abstract long |
getLength()
Get the record length from the header.
|
abstract String |
getMimetype()
Get the content-type from the header and not the payload.
|
abstract long |
getOffset()
Get record offset.
|
abstract String |
getReaderIdentifier()
Return the reader identifier.
|
abstract String |
getRecordIdentifier()
Return the record identifier.
|
abstract String |
getUrl()
Get the URL from the header.
|
abstract String |
getVersion()
Get record version.
|
public boolean bIsArc
public boolean bIsWarc
public ArchiveHeaderBase()
public abstract Object getHeaderValue(String key)
key
- header keypublic abstract String getHeaderStringValue(String key)
key
- header keypublic abstract Set<String> getHeaderFieldKeys()
Set
of header keys.Set
of header keys.public abstract Map<String,Object> getHeaderFields()
Map
of all header key/value pairs.Map
of all header key/value pairs.public abstract Date getDate()
Date
object.Date
objectpublic abstract String getArcDateStr()
public abstract long getLength()
public abstract String getUrl()
public abstract String getIp()
public abstract String getMimetype()
public abstract String getVersion()
public abstract long getOffset()
public abstract String getReaderIdentifier()
public abstract String getRecordIdentifier()
public abstract File getArchiveFile()
File
File
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.