Package com.google.appengine.spi
Class ServicesFile
java.lang.Object
com.google.appengine.spi.ServicesFile
A helper class for reading and writing Services files.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns an absolute path to a service file given the class name of the service.readServiceFile(InputStream input) Reads the set of service classes from a service file.static voidwriteServiceFile(Collection<String> services, OutputStream output) Writes the set of service class names to a service file.
-
Field Details
-
SERVICES_PATH
- See Also:
-
-
Method Details
-
getPath
Returns an absolute path to a service file given the class name of the service.- Parameters:
serviceName- notnull- Returns:
- SERVICES_PATH + serviceName
-
readServiceFile
Reads the set of service classes from a service file.- Parameters:
input- notnull. Closed after use.- Returns:
- a not
null Setof service class names. - Throws:
IOException
-
writeServiceFile
public static void writeServiceFile(Collection<String> services, OutputStream output) throws IOException Writes the set of service class names to a service file.- Parameters:
services- a notnull Collectionof service class names.output- notnull. Not closed after use.- Throws:
IOException
-