static public void appendHexString ( StringBuilder buffer , byte value ) { assertNotNull ( buffer ) ; int nibble = ( value & 0xF0 ) >>> 4 ; buffer . append ( HEX_TABLE [ nibble ] ) ; nibble = ( value & 0x0F ) ; buffer . append ( HEX_TABLE [ nibble ] ) ; }
Appends 2 characters to a StringBuilder with the byte in a Big Endian hexidecimal format . For example a byte 0x34 will be appended as a String in format 34 . A byte of value 0 will be appended as 00 .