public class AttributeParser extends chat.dim.tlv.Parser<Attribute,AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value> implements ValueParser
| Constructor and Description |
|---|
AttributeParser() |
| Modifier and Type | Method and Description |
|---|---|
protected Attribute |
createEntry(chat.dim.type.ByteArray data,
AttributeType type,
chat.dim.tlv.lengths.Length16 length,
chat.dim.tlv.Value value) |
protected chat.dim.stun.attributes.LengthParser |
getLengthParser() |
protected chat.dim.stun.attributes.TypeParser |
getTagParser() |
protected ValueParser |
getValueParser() |
chat.dim.tlv.lengths.Length16 |
parseLength(chat.dim.type.ByteArray data,
AttributeType type) |
AttributeType |
parseTag(chat.dim.type.ByteArray data) |
chat.dim.tlv.Value |
parseValue(chat.dim.type.ByteArray data,
AttributeType type,
chat.dim.tlv.lengths.Length16 length) |
static void |
register(java.lang.String type,
ValueParser parser) |
protected chat.dim.stun.attributes.TypeParser getTagParser()
getTagParser in class chat.dim.tlv.Parser<Attribute,AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value>protected chat.dim.stun.attributes.LengthParser getLengthParser()
getLengthParser in class chat.dim.tlv.Parser<Attribute,AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value>protected ValueParser getValueParser()
getValueParser in class chat.dim.tlv.Parser<Attribute,AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value>public AttributeType parseTag(chat.dim.type.ByteArray data)
public chat.dim.tlv.lengths.Length16 parseLength(chat.dim.type.ByteArray data,
AttributeType type)
public chat.dim.tlv.Value parseValue(chat.dim.type.ByteArray data,
AttributeType type,
chat.dim.tlv.lengths.Length16 length)
parseValue in interface chat.dim.tlv.Value.Parser<AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value>protected Attribute createEntry(chat.dim.type.ByteArray data, AttributeType type, chat.dim.tlv.lengths.Length16 length, chat.dim.tlv.Value value)
createEntry in class chat.dim.tlv.Parser<Attribute,AttributeType,chat.dim.tlv.lengths.Length16,chat.dim.tlv.Value>public static void register(java.lang.String type,
ValueParser parser)