Package org.aesh.terminal.utils
Class ShortHelper
java.lang.Object
org.aesh.terminal.utils.ShortHelper
Utility class for converting between String and short array representations.
- Author:
- Ståle W. Pedersen
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfromShortPoints(short[] input) Convert an array of short code points to a string.static short[]toShortPoints(String input) Convert a string to an array of short code points.
-
Method Details
-
toShortPoints
Convert a string to an array of short code points.- Parameters:
input- the string to convert- Returns:
- the short array representation
-
fromShortPoints
Convert an array of short code points to a string.- Parameters:
input- the short array to convert- Returns:
- the string representation
-