CharsetUtil (Apache Tomcat 10.1.57 API Documentation)
Description: declaration: package: org.apache.tomcat.util.buf, class: CharsetUtil

# Class CharsetUtil

java.lang.Object
org.apache.tomcat.util.buf.CharsetUtil

public class CharsetUtil extends Object
Utility methods for charset operations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `isAsciiSuperset(Charset charset)`
  Checks if the given charset is a superset of ASCII.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### isAsciiSuperset

    public static boolean isAsciiSuperset(Charset charset)
    Checks if the given charset is a superset of ASCII.
    Parameters:
      `charset` - the charset to check
    Returns:
      true if the charset is an ASCII superset