}
// Now, let's decode the ETYPE-INFO2-ENTRY
Asn1Decoder etypeInfo2EntryDecoder = new Asn1Decoder();
ETypeInfo2EntryContainer etypeInfo2EntryContainer = new ETypeInfo2EntryContainer();
etypeInfo2EntryContainer.setStream( eTypeInfo2Container.getStream() );
// Compute the start position in the stream for the ETypeInfoEntry to decode :
// We have to move back to the ETypeInfoEntry tag
eTypeInfo2Container.rewind();
// Decode the ETypeInfo2Entry PDU
try
{
etypeInfo2EntryDecoder.decode( eTypeInfo2Container.getStream(), etypeInfo2EntryContainer );
}
catch ( DecoderException de )
{
throw de;
}
// Update the expected length for the current TLV
tlv.setExpectedLength( tlv.getExpectedLength() - tlv.getLength() );
// Update the parent
eTypeInfo2Container.updateParent();
// Store the ETypeInfoEntry in the container
ETypeInfo2Entry etypeInfo2Entry = etypeInfo2EntryContainer.getETypeInfo2Entry();
eTypeInfo2Container.addEtypeInfo2Entry( etypeInfo2Entry );
if ( IS_DEBUG )
{
LOG.debug( "ETYPE-INFO2-ENTRY added : {}", etypeInfo2Entry );