T
- Generic extension typepublic abstract class AbstractKexExtensionParser<T> extends java.lang.Object implements KexExtensionParser<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractKexExtensionParser(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
encode(T value,
Buffer buffer) |
java.lang.String |
getName() |
void |
putExtension(T value,
Buffer buffer)
Adds the name + value to the buffer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseExtension, parseExtension, parseExtension
findByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByName
protected AbstractKexExtensionParser(java.lang.String name)
public java.lang.String getName()
getName
in interface NamedResource
public void putExtension(T value, Buffer buffer) throws java.io.IOException
KexExtensionParser
putExtension
in interface KexExtensionParser<T>
value
- The value of the extensionbuffer
- The target Buffer
java.io.IOException
- If failed to encode