final class ServicesFiles
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICES_PATH |
Modifier | Constructor and Description |
---|---|
private |
ServicesFiles() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
getPath(java.lang.String serviceName)
Returns an absolute path to a service file given the class
name of the service.
|
(package private) static java.util.Set<java.lang.String> |
readServiceFile(java.io.InputStream input)
Reads the set of service classes from a service file.
|
(package private) static void |
writeServiceFile(java.util.Collection<java.lang.String> services,
java.io.OutputStream output)
Writes the set of service class names to a service file.
|
public static final java.lang.String SERVICES_PATH
static java.lang.String getPath(java.lang.String serviceName)
serviceName
- not null
static java.util.Set<java.lang.String> readServiceFile(java.io.InputStream input) throws java.io.IOException
input
- not null
. Closed after use.null Set
of service class names.java.io.IOException
static void writeServiceFile(java.util.Collection<java.lang.String> services, java.io.OutputStream output) throws java.io.IOException
output
- not null
. Not closed after use.services
- a not null Collection
of service class names.java.io.IOException