private static InetAddress bytesToInetAddress ( byte [ ] addr ) { try { return InetAddress . getByAddress ( addr ) ; } catch ( UnknownHostException e ) { throw new AssertionError ( e ) ; } }
Convert a byte array into an InetAddress .