Package org.apache.jena.atlas.lib
Class Hex
- java.lang.Object
-
- org.apache.jena.atlas.lib.Hex
-
public class Hex extends java.lang.ObjectWorking in hex ...
-
-
Constructor Summary
Constructors Constructor Description Hex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intformatUnsignedLongHex(byte[] b, int start, long value, int width)static longgetLong(byte[] arr, int idx)static inthexByteToInt(int c)static inthexByteToInt(int c, int marker)Return the value of the hex digit, or the marker value if not a hex digit.static inthexStringToInt(java.lang.String s, int i, int len)Hex string to value
-
-
-
Method Detail
-
formatUnsignedLongHex
public static int formatUnsignedLongHex(byte[] b, int start, long value, int width)
-
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(java.lang.String s, int i, int len)Hex string to value
-
-