Class EncodingRegistry
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.encoding.EncodingRegistry
-
public final class EncodingRegistry extends 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 StringENCODING_ALIAS_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodinggetEncoding(String name)static EncodingRegistrygetInstance()static StringgetPlatformDefaultEncoding()Helper method to read the platform default encoding from the VM's system properties.booleanisSupportedEncoding(String encoding)Returnstrueif the encoding is valid, andfalseotherwise.
-
-
-
Field Detail
-
ENCODING_ALIAS_PREFIX
public static final String ENCODING_ALIAS_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EncodingRegistry getInstance()
-
isSupportedEncoding
public boolean isSupportedEncoding(String encoding)
Returnstrueif the encoding is valid, andfalseotherwise.- Parameters:
encoding- the encoding (name).- Returns:
- A boolean.
-
getPlatformDefaultEncoding
public static 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".
-
-