T
- The type of object to encode/decodepublic interface ExtendedAttribute<T>
Modifier and Type | Interface and Description |
---|---|
static class |
ExtendedAttribute.NamespacePrefix
The namespace for extended attributes.
|
Modifier and Type | Method and Description |
---|---|
T |
decode(byte[] bytes)
Decode an object from a single byte string.
|
byte[] |
encode(T object)
Encode a single object into a byte string.
|
String |
getIdentifier() |
String |
getName() |
String |
getNamespace() |
String getName()
String getNamespace()
String getIdentifier()
byte[] encode(T object)
object
- the object to encodeT decode(byte[] bytes) throws IOException
bytes
- the bytes to decode into a single instance ofIOException
- if the size of the byte string isn't equal to the encoding lengthCopyright © 2023. All Rights Reserved.