Class NifSelector
java.lang.Object
org.pcap4j.util.NifSelector
- Since:
- pcap4j 0.9.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PcapNetworkInterfacedoSelect(List<PcapNetworkInterface> nifs) protected Stringread()final PcapNetworkInterfaceprotected voidshowNifList(List<PcapNetworkInterface> nifs) protected void
-
Field Details
-
LINE_SEPARATOR
-
-
Constructor Details
-
NifSelector
public NifSelector()
-
-
Method Details
-
selectNetworkInterface
- Returns:
- a PcapNetworkInterface object which represents a selected network interface.
- Throws:
IOException- if no network interface is available.
-
write
- Parameters:
msg- msg- Throws:
IOException- if fails to write.
-
read
- Returns:
- string
- Throws:
IOException- if fails to read.
-
showNifList
- Parameters:
nifs- nifs- Throws:
IOException- if fails to show.
-
doSelect
- Parameters:
nifs- nifs- Returns:
- a PcapNetworkInterface object which represents a selected network interface.
- Throws:
IOException- if fails in something around IO.
-