Class CharsetCache

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

public class CharsetCache extends Object
Cache for Charset instances.
  • Constructor Details

    • CharsetCache

      public CharsetCache()
      Creates a new CharsetCache and pre-populates it with the initial charsets.
  • Method Details

    • getCharset

      public Charset getCharset(String charsetName)
      Retrieves the charset for the given name.
      Parameters:
      charsetName - the name of the charset
      Returns:
      the charset, or null if not available