Class ShortHelper

java.lang.Object
org.aesh.terminal.utils.ShortHelper

public class ShortHelper extends Object
Utility class for converting between String and short array representations.
Author:
Ståle W. Pedersen
  • Method Details

    • toShortPoints

      public static short[] toShortPoints(String input)
      Convert a string to an array of short code points.
      Parameters:
      input - the string to convert
      Returns:
      the short array representation
    • fromShortPoints

      public static String fromShortPoints(short[] input)
      Convert an array of short code points to a string.
      Parameters:
      input - the short array to convert
      Returns:
      the string representation