Class EncodingRegistry

java.lang.Object
org.pentaho.reporting.libraries.fonts.encoding.EncodingRegistry

public final class EncodingRegistry extends java.lang.Object
A global registry for all supported encodings. This offers the option to fall back to Java - which is enabled by default.
Author:
Thomas Morgner.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final java.lang.String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getEncoding(java.lang.String name)
     
     
    static java.lang.String
    Helper method to read the platform default encoding from the VM's system properties.
    boolean
    isSupportedEncoding(java.lang.String encoding)
    Returns true if the encoding is valid, and false otherwise.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENCODING_ALIAS_PREFIX

      public static final java.lang.String ENCODING_ALIAS_PREFIX
      See Also:
  • Method Details

    • getInstance

      public static EncodingRegistry getInstance()
    • isSupportedEncoding

      public boolean isSupportedEncoding(java.lang.String encoding)
      Returns true if the encoding is valid, and false otherwise.
      Parameters:
      encoding - the encoding (name).
      Returns:
      A boolean.
    • getPlatformDefaultEncoding

      public static java.lang.String getPlatformDefaultEncoding()
      Helper method to read the platform default encoding from the VM's system properties.
      Returns:
      the contents of the system property "file.encoding".
    • getEncoding

      public Encoding getEncoding(java.lang.String name)