defined a callback interface for processing WARC records and a sample class that inplements this interface