public abstract class TLVStructure extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected TLVElement | 
rootElement  | 
| Constructor and Description | 
|---|
TLVStructure()
Constructors to be used to create new inmemory structure element. 
 | 
TLVStructure(TLVElement rootElement)
Constructor for decoding TLV element. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
abstract int | 
getElementType()  | 
TLVElement | 
getRootElement()  | 
int | 
hashCode()  | 
protected TLVElement | 
readOnce(TLVElement element)  | 
protected void | 
verifyCriticalFlag(TLVElement element)
Checks if the TLV element is critical or not. 
 | 
void | 
writeTo(OutputStream out)  | 
protected TLVElement rootElement
public TLVStructure(TLVElement rootElement) throws TLVParserException
rootElement - inmemory element to decode, not null.TLVParserException - when root element is null or root element type does not match
         with inmemory structure type.public TLVStructure()
protected void verifyCriticalFlag(TLVElement element) throws TLVParserException
element - TLV element to check.TLVParserException - when unknown critical TLV element is encountered.protected TLVElement readOnce(TLVElement element) throws TLVParserException
element - TLV element of type to read only once.TLVElement.TLVParserException - when TLV element of given type is already processed.public abstract int getElementType()
public void writeTo(OutputStream out) throws KSIException
KSIExceptionpublic TLVElement getRootElement()
Copyright © 2024 Guardtime. All rights reserved.