Class CharsetExtensions

java.lang.Object
io.github.astrapi69.string.CharsetExtensions

public final class CharsetExtensions extends Object
The class CharsetExtensions provides extension methods for Charset objects
  • Method Details

    • getCharset

      public static Optional<Charset> getCharset(String encoding)
      Gets the Charset object from the given encoding as String object
      Parameters:
      encoding - the encoding as String object
      Returns:
      an Optional object with the resolved Charset object or empty if not found