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, waitparseExtension, parseExtension, parseExtensionfindByName, getNameList, getNames, ofName, removeByNameprotected AbstractKexExtensionParser(java.lang.String name)
public java.lang.String getName()
getName in interface NamedResourcepublic void putExtension(T value, Buffer buffer) throws java.io.IOException
KexExtensionParserputExtension in interface KexExtensionParser<T>value - The value of the extensionbuffer - The target Bufferjava.io.IOException - If failed to encode