Class Hex

java.lang.Object
org.apache.jena.atlas.lib.Hex

public class Hex extends Object
Working in hex ...
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hex()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    formatUnsignedLongHex(byte[] b, int start, long value, int width)
    Format a long value into a byte array as hex digits
    static long
    getLong(byte[] arr, int idx)
     
    static int
    hexByteToInt(int c)
     
    static int
    hexByteToInt(int c, int marker)
    Return the value of the hex digit, or the marker value if not a hex digit.
    static int
    hexStringToInt(String s, int i, int len)
    Hex string to value

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Hex

      public Hex()
  • Method Details

    • formatUnsignedLongHex

      public static void formatUnsignedLongHex(byte[] b, int start, long value, int width)
      Format a long value into a byte array as hex digits
    • getLong

      public static long getLong(byte[] arr, int idx)
    • hexByteToInt

      public static int hexByteToInt(int c)
    • hexByteToInt

      public static int hexByteToInt(int c, int marker)
      Return the value of the hex digit, or the marker value if not a hex digit.
    • hexStringToInt

      public static int hexStringToInt(String s, int i, int len)
      Hex string to value