Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.48 KB

ResourcesUtils.md

File metadata and controls

59 lines (35 loc) · 2.48 KB

ResourcesUtils

Usage/Examples

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");

    }

}

Authors

Support

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!

Badges

Twitter

Donations

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