de.intarsys.tools.tlv.common.TlvElementBasedObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
package de.intarsys.tools.tlv.common;
/**
* A model object represented in TLV format.
*
*/
public abstract class TlvElementBasedObject {
final private TlvElement element;
public TlvElementBasedObject(TlvElement element) {
this.element = element;
}
public byte[] asBytes() {
return getElement().getContent();
}
public TlvElement getElement() {
return element;
}
public byte getFirstByte() {
return getElement().getContent()[0];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy