intarsys runtime library

de.intarsys.tools.tlv.common
Class TlvTemplate

java.lang.Object
  extended by de.intarsys.tools.tlv.common.TlvTemplate
All Implemented Interfaces:
Iterable<TlvElement>

public class TlvTemplate
extends Object
implements Iterable<TlvElement>

A template is a collection of TlvElement instances. A TlvTemplate is for example contained in a composite TlvElement.


Constructor Summary
TlvTemplate()
           
TlvTemplate(TlvInputStream is)
           
 
Method Summary
 void addElement(TlvElement element)
           
 TlvElement getElement(int identifier)
          The first TlvElement identified by identifier or null.
 byte[] getEncoded()
           
 Iterator<TlvElement> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TlvTemplate

public TlvTemplate()

TlvTemplate

public TlvTemplate(TlvInputStream is)
            throws TlvFormatException
Throws:
TlvFormatException
Method Detail

addElement

public void addElement(TlvElement element)

getElement

public TlvElement getElement(int identifier)
The first TlvElement identified by identifier or null.

Parameters:
identifier -
Returns:
The first TlvElement identified by identifier or null.

getEncoded

public byte[] getEncoded()

iterator

public Iterator<TlvElement> iterator()
Specified by:
iterator in interface Iterable<TlvElement>

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.