Class TextEncoding


  • public final class TextEncoding
    extends java.lang.Object
    For various historical reasons, a number of different text encodings are used across Strange Eons for various purposes. This class presents a single source of truth for these encodings. This class contains both names and Charset instances for all of the major text encodings used by Strange Eons. Except for UTF-8, the members are named for their purpose rather than for the actual encoding standard.

    UTF-8 is generally preferred for new features.

    Since:
    3.3
    Author:
    Chris Jennings
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UTF8

        public static final java.lang.String UTF8
        Name of the UTF-8 8-bit Unicode encoding.
        See Also:
        Constant Field Values
      • UTF8_CS

        public static final java.nio.charset.Charset UTF8_CS
        Charset for UTF8.
      • CARD_LAYOUT

        public static final java.lang.String CARD_LAYOUT
        Name of the encoding used for card layout files (.cardlayout).
        See Also:
        Constant Field Values
      • CARD_LAYOUT_CS

        public static final java.nio.charset.Charset CARD_LAYOUT_CS
        * Charset for CARD_LAYOUT.
      • CATALOG

        public static final java.lang.String CATALOG
        Name of the encoding used for plug-in catalogues.
        See Also:
        Constant Field Values
      • CATALOG_CS

        public static final java.nio.charset.Charset CATALOG_CS
        Charset for CATALOG.
      • DEBUGGER

        public static final java.lang.String DEBUGGER
        Name of the encoding used for the debug protocol.
        See Also:
        Constant Field Values
      • DEBUGGER_CS

        public static final java.nio.charset.Charset DEBUGGER_CS
        Charset for DEBUGGER.
      • HTML_CSS

        public static final java.lang.String HTML_CSS
        Name of the encoding used for HTML and CSS resources (.html, .css).
        See Also:
        Constant Field Values
      • HTML_CSS_CS

        public static final java.nio.charset.Charset HTML_CSS_CS
        Charset for HTML_CSS.
      • PARSED_RESOURCE_CS

        public static final java.nio.charset.Charset PARSED_RESOURCE_CS
        Charset for PARSED_RESOURCE.
      • PLAIN_TEXT

        public static final java.lang.String PLAIN_TEXT
        Name of the encoding used for plain text files.
        See Also:
        Constant Field Values
      • PLAIN_TEXT_CS

        public static final java.nio.charset.Charset PLAIN_TEXT_CS
        Charset for PLAIN_TEXT.
      • PLUGIN_ROOT

        public static final java.lang.String PLUGIN_ROOT
        Name of the encoding used for plug-in root files.
        See Also:
        Constant Field Values
      • PLUGIN_ROOT_CS

        public static final java.nio.charset.Charset PLUGIN_ROOT_CS
        Charset for PLUGIN_ROOT.
      • SOURCE_CODE

        public static final java.lang.String SOURCE_CODE
        Name of the encoding used for source code (.ajs, .js, .ts, etc.).
        See Also:
        Constant Field Values
      • SCRIPT_CODE_CS

        public static final java.nio.charset.Charset SCRIPT_CODE_CS
        * Charset for SOURCE_CODE.
      • SETTINGS_CS

        public static final java.nio.charset.Charset SETTINGS_CS
        Charset for SETTINGS.
      • STRINGS

        public static final java.lang.String STRINGS
        Name of the encoding used to store string tables (.properties).
        See Also:
        Constant Field Values
      • STRINGS_CS

        public static final java.nio.charset.Charset STRINGS_CS
        Charset for STRINGS.
      • TEMPLATE_CS

        public static final java.nio.charset.Charset TEMPLATE_CS
        Charset for TEMPLATE.
      • WORD_LIST

        public static final java.lang.String WORD_LIST
        Name of the encoding used to store plain spelling dictionary word lists.
        See Also:
        Constant Field Values
      • WORD_LIST_CS

        public static final java.nio.charset.Charset WORD_LIST_CS
        Charset for WORD_LIST.