Package ca.cgjennings.apps.arkham
Class TextEncoding
- java.lang.Object
-
- ca.cgjennings.apps.arkham.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 andCharset
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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CARD_LAYOUT
Name of the encoding used for card layout files (.cardlayout)
.static java.nio.charset.Charset
CARD_LAYOUT_CS
*Charset
forCARD_LAYOUT
.static java.lang.String
CATALOG
Name of the encoding used for plug-in catalogues.static java.nio.charset.Charset
CATALOG_CS
Charset
forCATALOG
.static java.lang.String
DEBUGGER
Name of the encoding used for the debug protocol.static java.nio.charset.Charset
DEBUGGER_CS
Charset
forDEBUGGER
.static java.lang.String
HTML_CSS
Name of the encoding used for HTML and CSS resources (.html
,.css
).static java.nio.charset.Charset
HTML_CSS_CS
Charset
forHTML_CSS
.static java.lang.String
PARSED_RESOURCE
Name of the encoding used for files processed with aResourceParser
.static java.nio.charset.Charset
PARSED_RESOURCE_CS
Charset
forPARSED_RESOURCE
.static java.lang.String
PLAIN_TEXT
Name of the encoding used for plain text files.static java.nio.charset.Charset
PLAIN_TEXT_CS
Charset
forPLAIN_TEXT
.static java.lang.String
PLUGIN_ROOT
Name of the encoding used for plug-in root files.static java.nio.charset.Charset
PLUGIN_ROOT_CS
Charset
forPLUGIN_ROOT
.static java.nio.charset.Charset
SCRIPT_CODE_CS
*Charset
forSOURCE_CODE
.static java.lang.String
SETTINGS
Name of the encoding used to storeSettings
.static java.nio.charset.Charset
SETTINGS_CS
Charset
forSETTINGS
.static java.lang.String
SOURCE_CODE
Name of the encoding used for source code (.ajs
,.js
,.ts
, etc.).static java.lang.String
STRINGS
Name of the encoding used to store string tables (.properties
).static java.nio.charset.Charset
STRINGS_CS
Charset
forSTRINGS
.static java.lang.String
TEMPLATE
Name of the encoding used forSETemplateProcessor
templates.static java.nio.charset.Charset
TEMPLATE_CS
Charset
forTEMPLATE
.static java.lang.String
UTF8
Name of the UTF-8 8-bit Unicode encoding.static java.nio.charset.Charset
UTF8_CS
Charset
forUTF8
.static java.lang.String
WORD_LIST
Name of the encoding used to store plain spelling dictionary word lists.static java.nio.charset.Charset
WORD_LIST_CS
Charset
forWORD_LIST
.
-
-
-
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
forUTF8
.
-
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
forCARD_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
forCATALOG
.
-
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
forDEBUGGER
.
-
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
forHTML_CSS
.
-
PARSED_RESOURCE
public static final java.lang.String PARSED_RESOURCE
Name of the encoding used for files processed with aResourceParser
.- See Also:
- Constant Field Values
-
PARSED_RESOURCE_CS
public static final java.nio.charset.Charset PARSED_RESOURCE_CS
Charset
forPARSED_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
forPLAIN_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
forPLUGIN_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
forSOURCE_CODE
.
-
SETTINGS
public static final java.lang.String SETTINGS
Name of the encoding used to storeSettings
.- See Also:
- Constant Field Values
-
SETTINGS_CS
public static final java.nio.charset.Charset SETTINGS_CS
Charset
forSETTINGS
.
-
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
forSTRINGS
.
-
TEMPLATE
public static final java.lang.String TEMPLATE
Name of the encoding used forSETemplateProcessor
templates.- See Also:
- Constant Field Values
-
TEMPLATE_CS
public static final java.nio.charset.Charset TEMPLATE_CS
Charset
forTEMPLATE
.
-
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
forWORD_LIST
.
-
-