- All Implemented Interfaces:
Serializable
,Comparable<Terminal.CharSetCapability>
,Constable
- Enclosing class:
- Terminal
The
Terminal.CharSetCapability
defines three categories of character
capabilities as observed on various platform. The method
Terminal.toCharSetCapability()
tries to determine at best will
the capabilities of the current terminal session.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Terminal.CharSetCapability
Returns the enum constant of this class with the specified name.static Terminal.CharSetCapability[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNICODE
Congratulations, the terminal seems to be capable of unicode (UTF-8). -
WINDOWS
A Windows terminal without (full) UTF-8 support. Make sure you also takeTerminal.getLineBreak()
into account as well as the odd line break behavior when being at the end of a line. -
ASCII
The least common denominator which the current terminal session seems to be capable of.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-