com.moesol.util
Class HexFormatter
java.lang.Object
com.moesol.util.HexFormatter
public class HexFormatter
- extends Object
Format hex numbers with leading padding if needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexFormatter
public HexFormatter()
format
public static String format(long value,
int width)
- Parameters:
value
- value to format as hexwidth
- width of all output
- Returns:
- hex formatted String
format
public static String format(long value,
int width,
char pad_char)
- Parameters:
value
- value to format as hexwidth
- width of all outputpad_char
- character to insert if padding is needed
- Returns:
- hex formatted String
appendPaddedHex
public static void appendPaddedHex(StringBuffer r,
long value,
int width,
char pad_char)
Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.