/** * Reads a packet from pcap byte array. * * @return the packet throws IOException the stream has been closed and the * contained input stream does not support reading after close, or * another I/O error occurs. * @throws IOException Signals that an I/O * exception has occurred. * @see * org.krakenapps.pcap.PcapInputStream#getPacket() * @throws IOException * Signals that an I/O exception has occurred. */ public PcapPacket getPacket() throws IOException { return readPacket(globalHeader.getMagicNumber()); }