Class StringUtils

java.lang.Object
org.openjdk.asmtools.asmutils.StringUtils

public class StringUtils extends Object
Utility class to share common tools/methods.
  • Field Details

  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • Utf8ToString

      public static String Utf8ToString(String utf8)
      Converts CONSTANT_Utf8_info string to a printable string for jdis/jdes.
      Parameters:
      utf8 - UTF8 string taken from within ConstantPool of a class file
      Returns:
      output string for jcod/jasm
    • mapToHexString

      public static String mapToHexString(int[] array)
    • repeat

      public static String repeat(String str, int count)
    • isPrintableChar

      public static boolean isPrintableChar(char c)