public class CharEncodeOptions
extends java.lang.Object
Characters may fall into the following, potentially overlapping, categories.
Modifier and Type | Field and Description |
---|---|
CharSet |
_allChars |
CharSet |
_coreChars |
SpaceEscapeOption |
_spaceEscapeOption |
static CharEncodeOptions |
DEFAULT |
static CharSet |
DEFAULT_ALL_CHARS |
static CharSet |
DEFAULT_CORE_CHARS |
static SpaceEscapeOption |
DEFAULT_SPACE_ESCAPE_OPTION |
static CharEncodeOptions |
DONT_ESCAPE_SPACE |
static CharEncodeOptions |
ENGLISH_KEYBOARD_GENERAL_TEXT |
static CharEncodeOptions |
ENGLISH_KEYBOARD_GENERAL_TEXT_DONT_ESCAPE |
Constructor and Description |
---|
CharEncodeOptions(CharSet coreChars,
CharSet allChars) |
CharEncodeOptions(CharSet coreChars,
CharSet allChars,
SpaceEscapeOption spaceEscapeOption) |
Modifier and Type | Method and Description |
---|---|
CharEncodeOptions |
diffAllChars(CharSet diffAllChars)
Returns an instance which supports different characters and is otherwise identical.
|
CharEncodeOptions |
diffCoreChars(CharSet diffCoreChars)
Returns an instance which has different core characters and is otherwise identical.
|
CharEncodeOptions |
diffSpaceEscapeOption(SpaceEscapeOption diffSpaceEscapeOption)
Returns an instance which supports a different space escape option and is otherwise
identical.
|
boolean |
isIn(char ch)
Determines whether the character is supported at all.
|
boolean |
isNonCore(char ch)
Determines whether the character is a non-core character.
|
boolean |
needsSpecialSpaceTreatement(char ch)
Determines whether the character needs special character.
|
java.lang.String |
toString() |
public final CharSet _coreChars
public final CharSet _allChars
public final SpaceEscapeOption _spaceEscapeOption
public static final CharSet DEFAULT_CORE_CHARS
public static final CharSet DEFAULT_ALL_CHARS
public static final SpaceEscapeOption DEFAULT_SPACE_ESCAPE_OPTION
public static final CharEncodeOptions DEFAULT
public static final CharEncodeOptions DONT_ESCAPE_SPACE
public static final CharEncodeOptions ENGLISH_KEYBOARD_GENERAL_TEXT
public static final CharEncodeOptions ENGLISH_KEYBOARD_GENERAL_TEXT_DONT_ESCAPE
public CharEncodeOptions(CharSet coreChars, CharSet allChars, SpaceEscapeOption spaceEscapeOption)
public boolean isIn(char ch)
ch
- The character to be assessed.public boolean isNonCore(char ch)
The
- character to be assessed.public boolean needsSpecialSpaceTreatement(char ch)
ch
- The character to be assessed.public java.lang.String toString()
toString
in class java.lang.Object
public CharEncodeOptions diffCoreChars(CharSet diffCoreChars)
diffCoreChars
- The new set of core characters.public CharEncodeOptions diffAllChars(CharSet diffAllChars)
diffAllChars
- The new set of all supported characters.public CharEncodeOptions diffSpaceEscapeOption(SpaceEscapeOption diffSpaceEscapeOption)
diffSpaceEscapeOption
-