question: private void writeHex ( int i ) throws IOException { int cursor = 8 ; do { hex [ -- cursor ] = HEX_DIGITS [ i & 0xf ] ; } while ( ( i >>>= 4 ) != 0 ) ; socketOut . write ( hex , cursor , hex . length - cursor ) ; }
target:  Equivalent to, but cheaper than writing Integer.toHexString().getBytes() followed by CRLF.