It works as ArchiveReader reading from WARC file with just one WARC record at offset 0 (there's no "warcinfo" record).
Content of the record is customized through {@link WARCRecordInfo}. ( {@link TestWARCRecordInfo} offers commonly-used default values and convenient factorymethods.
Typical test code would be:
String payload = "hogehogehogehogehoge"; WARCRecordInfo recinfo = TestWARCRecordInfo.createHttpResponse(payload); TestWARCReader ar = new TestWARCReader(recinfo); WARCRecord rec = (WARCRecord)ar.get(0);@contributor kenji
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|