Package jnr.netdb
Class NativeServicesDB
- java.lang.Object
-
- jnr.netdb.NativeServicesDB
-
- All Implemented Interfaces:
ServicesDB
- Direct Known Subclasses:
NativeServicesDB.DefaultNativeServicesDB
,NativeServicesDB.LinuxServicesDB
abstract class NativeServicesDB extends java.lang.Object implements ServicesDB
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
NativeServicesDB.DefaultNativeServicesDB
static interface
NativeServicesDB.LibServices
static interface
NativeServicesDB.LinuxLibServices
static class
NativeServicesDB.LinuxServent
(package private) static class
NativeServicesDB.LinuxServicesDB
private static class
NativeServicesDB.SingletonHolder
static class
NativeServicesDB.UnixServent
-
Field Summary
Fields Modifier and Type Field Description protected NativeServicesDB.LibServices
lib
-
Constructor Summary
Constructors Constructor Description NativeServicesDB(NativeServicesDB.LibServices lib)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NativeServicesDB
getInstance()
(package private) static int
htons(int value)
(package private) static NativeServicesDB
load()
(package private) static int
ntohs(int value)
(package private) static Service
serviceFromNative(NativeServicesDB.UnixServent s)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jnr.netdb.ServicesDB
getAllServices, getServiceByName, getServiceByPort
-
-
-
-
Field Detail
-
lib
protected final NativeServicesDB.LibServices lib
-
-
Constructor Detail
-
NativeServicesDB
public NativeServicesDB(NativeServicesDB.LibServices lib)
-
-
Method Detail
-
getInstance
public static final NativeServicesDB getInstance()
-
load
static final NativeServicesDB load()
-
ntohs
static int ntohs(int value)
-
htons
static int htons(int value)
-
serviceFromNative
static Service serviceFromNative(NativeServicesDB.UnixServent s)
-
-