0x30 L1 TypedData sequence | +-- 0x30 L2 The TD sequence | +--> 0xA0 L3 tdType tag | | | +--> 0x02 L3-2 tdType (int) | +--> [0xA1 L4 tdData tag | +--> 0x04 L4-2 tdData (OCTET STRING)]
116117118119120121122123124125126
assertEquals( 2, td.getDataType() ); assertTrue( Arrays.equals( Strings.getBytesUtf8( expected[i++] ), td.getDataValue() ) ); } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( typedData.computeLength() ); try { bb = typedData.encode( bb );
949596979899100101102103104
assertEquals( 2, td.getDataType() ); assertTrue( Arrays.equals( Strings.getBytesUtf8(expected[i++]), td.getDataValue() ) ); } // Check the encoding ByteBuffer bb = ByteBuffer.allocate( typedData.computeLength() ); try { bb = typedData.encode( bb );