static void writeServiceFile ( Collection < String > services , OutputStream output ) throws IOException { BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( output , UTF_8 ) ) ; for ( String service : services ) { writer . write ( service ) ; writer . newLine ( ) ; } writer . flush ( ) ; }
Writes the set of service class names to a service file .