Package pcap.api.internal
Class PcapService
java.lang.Object
pcap.api.internal.PcapService
- All Implemented Interfaces:
Service
public class PcapService extends java.lang.Object implements Service
-
Nested Class Summary
Nested classes/interfaces inherited from interface pcap.spi.Service
Service.Creator, Service.LiveOptions, Service.NoService, Service.OfflineOptions -
Constructor Summary
Constructors Constructor Description PcapService() -
Method Summary
Modifier and Type Method Description Pcaplive(Interface source, Service.LiveOptions options)java.net.Inet4AddresslookupInet4Address(Interface source)java.net.Inet6AddresslookupInet6Address(Interface source)InterfacelookupInterfaces()InterfacelookupInterfaces(java.util.function.Predicate<Interface> predicate)java.lang.Stringname()Pcapoffline(java.lang.String source, Service.OfflineOptions options)java.lang.Stringversion()
-
Constructor Details
-
PcapService
public PcapService()
-
-
Method Details
-
name
public java.lang.String name() -
version
public java.lang.String version() -
lookupInterfaces
- Specified by:
lookupInterfacesin interfaceService- Throws:
ErrorException
-
lookupInterfaces
public Interface lookupInterfaces(java.util.function.Predicate<Interface> predicate) throws ErrorException- Specified by:
lookupInterfacesin interfaceService- Throws:
ErrorException
-
lookupInet4Address
- Specified by:
lookupInet4Addressin interfaceService- Throws:
ErrorException
-
lookupInet6Address
- Specified by:
lookupInet6Addressin interfaceService- Throws:
ErrorException
-
offline
- Specified by:
offlinein interfaceService- Throws:
ErrorException
-
live
public Pcap live(Interface source, Service.LiveOptions options) throws InterfaceNotSupportTimestampTypeException, InterfaceNotUpException, RadioFrequencyModeNotSupportedException, ActivatedException, PermissionDeniedException, NoSuchDeviceException, PromiscuousModePermissionDeniedException, ErrorException, TimestampPrecisionNotSupportedException- Specified by:
livein interfaceService- Throws:
InterfaceNotSupportTimestampTypeExceptionInterfaceNotUpExceptionRadioFrequencyModeNotSupportedExceptionActivatedExceptionPermissionDeniedExceptionNoSuchDeviceExceptionPromiscuousModePermissionDeniedExceptionErrorExceptionTimestampPrecisionNotSupportedException
-