Class FileServicesDB
java.lang.Object
jnr.netdb.FileServicesDB
- All Implemented Interfaces:
ServicesDB
Parses /etc/services
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final ServicesDBgetServiceByName(String name, String proto) getServiceByPort(Integer port, String proto) private static final ServicesDBload()private final Serviceparse(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:
getServiceByNamein interfaceServicesDB
-
getServiceByPort
- Specified by:
getServiceByPortin interfaceServicesDB
-
getAllServices
- Specified by:
getAllServicesin interfaceServicesDB
-