Class WarcRecordClient
- java.lang.Object
-
- dk.netarkivet.common.utils.service.WarcRecordClient
-
public class WarcRecordClient extends Object
-
-
Constructor Summary
Constructors Constructor Description WarcRecordClient(URI baseUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getBaseUri()
BitarchiveRecord
getBitarchiveRecord(String arcfileName, long index)
Retrieves a single BitarchiveRecord from the repository from a given file and offset.long
getOffset()
void
setOffset(long offset)
-
-
-
Constructor Detail
-
WarcRecordClient
public WarcRecordClient(URI baseUri)
-
-
Method Detail
-
getBitarchiveRecord
public BitarchiveRecord getBitarchiveRecord(String arcfileName, long index)
Retrieves a single BitarchiveRecord from the repository from a given file and offset. If the operation fails for any reason, this method returns null.- Parameters:
arcfileName
- Name of the arcfile/warcfile to retrieve.index
- offset to fetch specific record from warc or arc file
-
getBaseUri
public URI getBaseUri()
-
getOffset
public long getOffset()
-
setOffset
public void setOffset(long offset)
-
-