T
- Generic extension typepublic abstract class AbstractKexExtensionParser<T> extends Object implements KexExtensionParser<T>
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractKexExtensionParser(String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
encode(T value,
Buffer buffer) |
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(String name)
public String getName()
getName
in interface NamedResource
public void putExtension(T value, Buffer buffer) throws IOException
KexExtensionParser
putExtension
in interface KexExtensionParser<T>
value
- The value of the extensionbuffer
- The target Buffer
IOException
- If failed to encodeprotected abstract void encode(T value, Buffer buffer) throws IOException
IOException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.