HostAddresses : 0x30 L1 hostAddresses sequence of HostAddresses | +--> 0x30 L2[1] Hostaddress[1] | +--> 0x30 L2[2] Hostaddress[2] | ... | +--> 0x30 L2[n] Hostaddress[n] where L1 = sum( L2[1], l2[2], ..., L2[n] )
164165166167168169170171172173174
assertTrue( Arrays.equals( Strings.getBytesUtf8( expected[i] ), hostAddress.getAddress() ) ); i++; } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( hostAddresses.computeLength() ); try { bb = hostAddresses.encode( bb );
163164165166167168169170171172173
113114115116117118119120121122123
assertTrue( Arrays.equals( Strings.getBytesUtf8(expected[i]), hostAddress.getAddress() ) ); i++; } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( hostAddresses.computeLength() ); try { bb = hostAddresses.encode( bb );