com.jkristian.io
Class Hexadecimal

java.lang.Object
  extended by com.jkristian.io.Hexadecimal

public class Hexadecimal
extends java.lang.Object

Utility functions for hexadecimal encoding.


Field Summary
static java.lang.String ALPHABET
          Characters that are significant in encoded data.
 
Constructor Summary
Hexadecimal()
           
 
Method Summary
static java.lang.String format(byte b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHABET

public static final java.lang.String ALPHABET
Characters that are significant in encoded data. ALPHABET.charAt(0) encodes 0, and so on up to ALPHABET.charAt(15) which encodes 15. Upper case letters are used, as required for Quoted-Printable (RFC 2045 section 6.7), and recommended for URL encoding (RFC 1738 section 2.2).

See Also:
Constant Field Values
Constructor Detail

Hexadecimal

public Hexadecimal()
Method Detail

format

public static java.lang.String format(byte b)
Returns:
the hexadecimal representation of b, 2 characters zero-filled.