hades.utils
Class HexFormat

java.lang.Object
  extended byhades.utils.HexFormat

public class HexFormat
extends java.lang.Object

utilities to print long integers in HEX formats.


Constructor Summary
HexFormat()
           
 
Method Summary
static java.lang.String getHexString(long value, int n_chars)
          return a hex-formatted String of 'value' at least 'n_chars' wide, filling with leading zeroes as necessary.
static java.lang.String getHexStringOrX(long value, int n_chars)
          return a hex-formatted String of 'value' at least 'n_chars' wide, filling with leading zeroes as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexFormat

public HexFormat()
Method Detail

getHexString

public static java.lang.String getHexString(long value,
                                            int n_chars)
return a hex-formatted String of 'value' at least 'n_chars' wide, filling with leading zeroes as necessary.


getHexStringOrX

public static java.lang.String getHexStringOrX(long value,
                                               int n_chars)
return a hex-formatted String of 'value' at least 'n_chars' wide, filling with leading zeroes as necessary.

Warning: An input value of '-1' is treated as an invalid (X) value and is formatted as "XXX...X".