public GlobalHeader getGlobalHeader() {
return globalHeader;
}
private PcapPacket readPacket(int magicNumber) throws IOException {
PacketHeader packetHeader = readPacketHeader(magicNumber);
Buffer packetData = readPacketData(packetHeader.getInclLen());
return new PcapPacket(packetHeader, packetData);
}