/** * Returns the size of this TLV in bytes. Basically, its always 4 bytes * plus the length of the value. Two bytes for tag and two byte for length * and then the length of the value itself. Primarily used for encoding * the PDU. * @return */ public int calculateByteSize() { return 4 + getUnsignedLength(); }
/** * Returns the size of this TLV in bytes. Basically, its always 4 bytes * plus the length of the value. Two bytes for tag and two byte for length * and then the length of the value itself. Primarily used for encoding * the PDU. * @return */ public int calculateByteSize() { return 4 + getUnsignedLength(); }
/** * Returns the size of this TLV in bytes. Basically, its always 4 bytes * plus the length of the value. Two bytes for tag and two byte for length * and then the length of the value itself. Primarily used for encoding * the PDU. * @return */ public int calculateByteSize() { return 4 + getUnsignedLength(); }
/** * Returns the size of this TLV in bytes. Basically, its always 4 bytes * plus the length of the value. Two bytes for tag and two byte for length * and then the length of the value itself. Primarily used for encoding * the PDU. * @return */ public int calculateByteSize() { return 4 + getUnsignedLength(); }
public short getLength() { return (short)getUnsignedLength(); }
public short getLength() { return (short)getUnsignedLength(); }
public short getLength() { return (short)getUnsignedLength(); }
public short getLength() { return (short)getUnsignedLength(); }
@Override public String toString() { StringBuilder buffer = new StringBuilder(40); if (tagName != null) { buffer.append(this.tagName); } else { buffer.append("tlv"); } buffer.append(": 0x"); buffer.append(HexUtil.toHexString(this.tag)); buffer.append(" 0x"); buffer.append(HexUtil.toHexString((short)getUnsignedLength())); buffer.append(" ["); HexUtil.appendHexString(buffer, this.value); buffer.append("]"); return buffer.toString(); }
@Override public String toString() { StringBuilder buffer = new StringBuilder(40); if (tagName != null) { buffer.append(this.tagName); } else { buffer.append("tlv"); } buffer.append(": 0x"); buffer.append(HexUtil.toHexString(this.tag)); buffer.append(" 0x"); buffer.append(HexUtil.toHexString((short)getUnsignedLength())); buffer.append(" ["); HexUtil.appendHexString(buffer, this.value); buffer.append("]"); return buffer.toString(); }
@Override public String toString() { StringBuilder buffer = new StringBuilder(40); if (tagName != null) { buffer.append(this.tagName); } else { buffer.append("tlv"); } buffer.append(": 0x"); buffer.append(HexUtil.toHexString(this.tag)); buffer.append(" 0x"); buffer.append(HexUtil.toHexString((short)getUnsignedLength())); buffer.append(" ["); HexUtil.appendHexString(buffer, this.value); buffer.append("]"); return buffer.toString(); }
@Override public String toString() { StringBuilder buffer = new StringBuilder(40); if (tagName != null) { buffer.append(this.tagName); } else { buffer.append("tlv"); } buffer.append(": 0x"); buffer.append(HexUtil.toHexString(this.tag)); buffer.append(" 0x"); buffer.append(HexUtil.toHexString((short)getUnsignedLength())); buffer.append(" ["); HexUtil.appendHexString(buffer, this.value); buffer.append("]"); return buffer.toString(); }