Package jnr.netdb
Class FileServicesDB
java.lang.Object
jnr.netdb.FileServicesDB
- All Implemented Interfaces:
ServicesDB
Parses /etc/services
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final ServicesDB
getServiceByName
(String name, String proto) getServiceByPort
(Integer port, String proto) private static final ServicesDB
load()
private final Service
parse
(FileServicesDB.Filter filter) private static final Service
(package private) static final NetDBParser
-
Field Details
-
fileName
-
-
Constructor Details
-
FileServicesDB
FileServicesDB()
-
-
Method Details
-
getInstance
-
load
-
parseServicesFile
-
parseServicesEntry
-
parse
-
getServiceByName
- Specified by:
getServiceByName
in interfaceServicesDB
-
getServiceByPort
- Specified by:
getServiceByPort
in interfaceServicesDB
-
getAllServices
- Specified by:
getAllServices
in interfaceServicesDB
-