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);
}

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 ) ; }
equivalent to , but cheaper than writing integer . tohexstring ( ) . getbytes ( ) followed by crlf .
