Package com.silabs.na.pcap
Interface IPcapInput
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
PcapInputNio,PcapngInputNio
public interface IPcapInput extends java.io.CloseableA stream api to retrieve packets from the file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlocknextBlock()Returns the next packet block.java.lang.Stringtype()Returns the type of the file.
-
-
-
Method Detail
-
type
java.lang.String type()
Returns the type of the file.- Returns:
- type of the file.
-
nextBlock
Block nextBlock() throws java.io.IOException
Returns the next packet block.- Returns:
- next packet block in the file, or null if there is no more.
- Throws:
java.io.IOException- if anything went wrong with underlying IO operations.
-
-