T - Extension generic typepublic interface KexExtensionParser<T> extends NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
T |
parseExtension(Buffer buffer) |
default T |
parseExtension(byte[] data) |
default T |
parseExtension(byte[] data,
int off,
int len) |
void |
putExtension(T value,
Buffer buffer)
Adds the name + value to the buffer
|
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNamedefault T parseExtension(byte[] data) throws IOException
IOExceptiondefault T parseExtension(byte[] data, int off, int len) throws IOException
IOExceptionT parseExtension(Buffer buffer) throws IOException
IOExceptionvoid putExtension(T value, Buffer buffer) throws IOException
value - The value of the extensionbuffer - The target BufferIOException - If failed to encodeCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.