class ClassLoaderUtil {

    public static InputStream getResourceAsStream(String resourceName) {
        URL url = getResource(resourceName);

        try {
            if (url != null) {
                return url.openStream();
            }
        } catch (IOException ignore) {
            // 打开URL失败。can ignore
        }

        return null;
    }

}