public class MyCallingClass {
public static void main(String[] args) throws IOException {
// Invoking a ResourcesUtils method one time
String resourceContent = ResourcesUtils.getResourceContent("my_path_name.resource", MyCallingClass.class);
// Invoking a ResourcesUtils methods multiple time is more efficient instantiating a dedicated object
ResourcesUtils<Class<MyCallingClass>> resourcesUtils = new ResourcesUtils<>(MyCallingClass.class);
String firstResourceContent = resourcesUtils.getResourceContent("my_first_path_name.resource");
String secondResourceContent = resourcesUtils.getResourceContent("my_second_path_name.resource");
}
}
If you need help using the library or encounter any problems or bugs, please contact us via the following links:
Thank you for your help!
If you want support project and developer
Crypto | Address | Network |
---|---|---|
3H3jyCzcRmnxroHthuXh22GXXSmizin2yp | Bitcoin | |
0x1b45bc41efeb3ed655b078f95086f25fc83345c4 | Ethereum |
If you want support project and developer with PayPal
Copyright © 2024 Tecknobit