public abstract class BERTLV extends Object implements TLV<BERTag,byte[]>
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BYTES |
static BERTag |
EMPTY_TAG |
protected byte[] |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
BERTLV(BERTag tag,
byte[] value) |
protected |
BERTLV(byte[] tag,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
Integer |
getLength() |
abstract String |
getStringValue() |
BERTag |
getTag() |
byte[] |
getValue() |
void |
setTag(BERTag tag) |
void |
setValue(byte[] value) |
String |
toHex() |
public static final byte[] EMPTY_BYTES
public static final BERTag EMPTY_TAG
protected byte[] value
protected BERTLV(BERTag tag, byte[] value)
protected BERTLV(byte[] tag,
byte[] value)
public final void setTag(BERTag tag)
public abstract String getStringValue()
public final void setValue(byte[] value)
public final String toHex() throws IOException
IOExceptionpublic byte[] getBytes()
throws IOException
IOExceptionCopyright © 2020–2021 com.github.mvallim. All rights reserved.