private static String readAsString(InputStream is) throws IOException {
        try (Reader r = new InputStreamReader(is, StandardCharsets.UTF_8)) {
            StringBuilder result = new StringBuilder();
            char[] buffer = new char[256];
            int n;
            while (-1 != (n = r.read(buffer))) { // NOPMD
                result.append(buffer, 0, n);
            }
            return result.toString();
        }
    }
Returns resource's contents as a string at the specified path by the specified classloader.
The path should point directly to the resource at the classpath. The classloader should have
access to the resource.

@param classLoader the classloader which loads the resource
@param path the resource path
@return the resource's contents
@see ClassLoader#getResource(String)
core/src/main/java/org/jdbi/v3/core/locator/ClasspathSqlLocator.java