public class ArcResource extends Resource
Constructor and Description |
---|
ArcResource(org.archive.io.arc.ARCRecord rec,
org.archive.io.ArchiveReader reader)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,String> |
filterMeta(String prefix) |
Map<String,String> |
getARCMetadata() |
org.archive.io.ArchiveRecord |
getArcRecord() |
Map<String,String> |
getHttpHeaders()
Assumes an HTTP response - return the HTTP headers, not including the
HTTP Message header
|
long |
getRecordLength() |
int |
getStatusCode()
(non-Javadoc)
|
void |
parseHeaders()
parse the headers on the underlying ARC record, and extract all
|
available, getHeader, getRefersToDate, getRefersToTargetURI, mark, markSupported, read, read, read, reset, setChunkedEncoding, setInputStream, skip
public ArcResource(org.archive.io.arc.ARCRecord rec, org.archive.io.ArchiveReader reader)
rec
- reader
- public void parseHeaders() throws IOException
parseHeaders
in class Resource
IOException
public Map<String,String> filterMeta(String prefix)
prefix
- public Map<String,String> getHttpHeaders()
Resource
getHttpHeaders
in class Resource
public Map<String,String> getARCMetadata()
public int getStatusCode()
getStatusCode
in class Resource
ARCRecord.getStatusCode()
public org.archive.io.ArchiveRecord getArcRecord()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Resource
IOException
public long getRecordLength()
getRecordLength
in class Resource
Copyright © 2005–2015 IIPC. All rights reserved.