readResourceAsString

Reads a resource relative as a string from the calling class.

If the URL starts with a /, then the resource will be read from the root, so either the JAR root, or from your resources directory.

If the URL does not start with a /, then it is read relative to the package of the calling class.