Class EncodingRegistry
java.lang.Object
org.pentaho.reporting.libraries.fonts.encoding.EncodingRegistry
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 -
Method Summary
Modifier and TypeMethodDescriptiongetEncoding(String name) static EncodingRegistrystatic StringHelper method to read the platform default encoding from the VM's system properties.booleanisSupportedEncoding(String encoding) Returnstrueif the encoding is valid, andfalseotherwise.
-
Field Details
-
ENCODING_ALIAS_PREFIX
- See Also:
-
-
Method Details
-
getInstance
-
isSupportedEncoding
Returnstrueif the encoding is valid, andfalseotherwise.- Parameters:
encoding- the encoding (name).- Returns:
- A boolean.
-
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
-