throws IOException {
this.order = order;
this.headerReader = headerReader;
this.filter = filter;
MarkableReadableByteChannel marked = new BufferedReadableByteChannel(in);
this.in = new CountedReadableByteChannel(marked);
this.block = readBlockRecord();
this.dlt = ProtocolRegistry.lookup(getCaptureDevice().getLinkType());