types/src/main/java/com/google/common/html/types/SafeStyleSheets.java
@GwtIncompatible("Resources")
  public static SafeStyleSheet fromResource(
      Class<?> contextClass, @CompileTimeConstant final String resourceName, Charset charset)
      throws IOException {
    return create(Resources.toString(Resources.getResource(contextClass, resourceName), charset));
  }
@GwtIncompatible("Resources")
  public static SafeStyleSheet fromResource(
      Class<?> contextClass, @CompileTimeConstant final String resourceName, Charset charset)
      throws IOException {
    return create(Resources.toString(Resources.getResource(contextClass, resourceName), charset));
  }
Creates a SafeStyleSheet from the given compile-time constant {@code resourceName} using
the given {@code charset}.

<p>This performs ZERO VALIDATION of the data. We assume that resources should be safe because
they are part of the binary, and therefore not attacker controlled.

@param contextClass Class relative to which to load the resource.