* Parses a document from a WARC collection
*
* @throws java.io.IOException
*/
private void parseWAR018CDocument() throws IOException {
WarcRecord warcRecord = null;
DataInputStream dis = new DataInputStream(rawContent);
// Regardless of what the stream gives us, we read and return
// the first entry which is a response.
WarcHTMLResponseRecord warcResponse = null;
while ((warcRecord = WarcRecord.readNextWarcRecord(dis)) != null) {
// ignore if no WARC response type, otherwise read and finish
if (warcRecord.getHeaderRecordType().equals("response")) {
warcResponse = new WarcHTMLResponseRecord(warcRecord);
break;
}
}