public class WARCRecordInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
contentLength |
protected InputStream |
contentStream |
protected String |
create14DigitDate |
protected boolean |
enforceLength |
protected ANVLRecord |
extraHeaders |
protected String |
mimetype |
protected URI |
recordId |
protected WARCConstants.WARCRecordType |
type |
protected String |
url |
protected String |
warcFilename |
protected Long |
warcFileOffset |
| Constructor and Description |
|---|
WARCRecordInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraHeader(String label,
String value) |
long |
getContentLength() |
InputStream |
getContentStream() |
String |
getCreate14DigitDate() |
boolean |
getEnforceLength() |
ANVLRecord |
getExtraHeaders() |
String |
getMimetype() |
URI |
getRecordId() |
WARCConstants.WARCRecordType |
getType() |
String |
getUrl() |
String |
getWARCFilename() |
Long |
getWARCFileOffset() |
boolean |
isEnforceLength() |
void |
setContentLength(long contentLength) |
void |
setContentStream(InputStream contentStream) |
void |
setCreate14DigitDate(String create14DigitDate) |
void |
setEnforceLength(boolean enforceLength) |
void |
setExtraHeaders(ANVLRecord extraHeaders) |
void |
setMimetype(String mimetype) |
void |
setRecordId(URI recordId) |
void |
setType(WARCConstants.WARCRecordType type) |
void |
setUrl(String url) |
void |
setWARCFilename(String warcFilenameWithoutOccupiedSuffix) |
void |
setWARCFileOffset(Long startPosition) |
protected WARCConstants.WARCRecordType type
protected String url
protected String create14DigitDate
protected String mimetype
protected URI recordId
protected ANVLRecord extraHeaders
protected InputStream contentStream
protected long contentLength
protected boolean enforceLength
protected String warcFilename
protected Long warcFileOffset
public void setType(WARCConstants.WARCRecordType type)
public void setUrl(String url)
public String getCreate14DigitDate()
public void setCreate14DigitDate(String create14DigitDate)
public String getMimetype()
public void setMimetype(String mimetype)
public URI getRecordId()
public void setRecordId(URI recordId)
public ANVLRecord getExtraHeaders()
public void setExtraHeaders(ANVLRecord extraHeaders)
public InputStream getContentStream()
public void setContentStream(InputStream contentStream)
public long getContentLength()
public void setContentLength(long contentLength)
public boolean isEnforceLength()
public boolean getEnforceLength()
public void setEnforceLength(boolean enforceLength)
public WARCConstants.WARCRecordType getType()
public String getUrl()
public void setWARCFilename(String warcFilenameWithoutOccupiedSuffix)
public String getWARCFilename()
public void setWARCFileOffset(Long startPosition)
public Long getWARCFileOffset()
Copyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.