com.cysols.iodef.analysis.packet
Interface PacketReader


public interface PacketReader

An interface of packet record reader from the data repository.

Author:
cysol

Method Summary
 Packet read()
          Reads a stored packet from the data repository.
 Packet[] read(int limit)
          Reads the limited number of the stored packet records from the data repository, if 0 limit is specified, reads all records.
 

Method Detail

read

Packet read()
            throws PacketReadException
Reads a stored packet from the data repository.

Returns:
a Packet object.
Throws:
PacketReadException - if an error occurs.

read

Packet[] read(int limit)
              throws PacketReadException
Reads the limited number of the stored packet records from the data repository, if 0 limit is specified, reads all records.

Parameters:
limit - limit number
Returns:
array of Packet object.
Throws:
PacketReadException - If an error occurs