Class Convert

java.lang.Object
net.glowstone.util.Convert

public class Convert extends Object
  • Constructor Details

    • Convert

      public Convert()
  • Method Details

    • fromHex

      public static byte[] fromHex(String hex)
      Converts a hexadecimal string to a byte array.
      Parameters:
      hex - a string of hexadecimal digits
      Returns:
      hex as a byte array
    • fromBytes

      public static String fromBytes(byte[] bytes)
      Converts a byte array to a hexadecimal string.
      Parameters:
      bytes - a byte array
      Returns:
      bytes as a hexadecimal string