[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eServicesFile\u003c/code\u003e is a helper class designed for managing service files, specifically for reading and writing service class information.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and includes inherited methods such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSERVICES_PATH\u003c/code\u003e is a static field that represents the location where service files are typically stored, represented by a \u003ccode\u003eString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetPath()\u003c/code\u003e static method is used to generate the full path to a service file based on the provided service class name.\u003c/p\u003e\n"],["\u003cp\u003eStatic methods \u003ccode\u003ereadServiceFile()\u003c/code\u003e and \u003ccode\u003ewriteServiceFile()\u003c/code\u003e are used to read from and write to a service file, respectively, handling service class names and potential \u003ccode\u003eIOException\u003c/code\u003es.\u003c/p\u003e\n"]]],[],null,["# Class ServicesFile (2.0.0)\n\n public class ServicesFile\n\nA helper class for reading and writing Services files.\nSee Also: java.util.ServiceLoader \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e ServicesFile \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### SERVICES_PATH\n\n public static final String SERVICES_PATH\n\nStatic Methods\n--------------\n\n### getPath(String serviceName)\n\n public static String getPath(String serviceName)\n\nReturns an absolute path to a service file given the class name of the service.\n\n### readServiceFile(InputStream input)\n\n public static Set\u003cString\u003e readServiceFile(InputStream input)\n\nReads the set of service classes from a service file.\n\n### writeServiceFile(Collection\\\u003cString\\\u003e services, OutputStream output)\n\n public static void writeServiceFile(Collection\u003cString\u003e services, OutputStream output)\n\nWrites the set of service class names to a service file."]]