public PcapRecord next() throws IOException {
final long position = raw.getPosition();
final ByteBuffer buffer = raw.next();
final RecordType type = headerReader.readType(buffer);
switch (type) {
case BlockRecord:
return new PcapBlockRecordImpl(buffer, position);