@InterfaceAudience.Private
@InterfaceStability.Evolving
public interface Tag
Each Tag is having a type (one byte) and value part. The max value length for a Tag is 65533.
See TagType for reserved tag types.
| Modifier and Type | Field and Description |
|---|---|
static int |
INFRASTRUCTURE_SIZE |
static int |
MAX_TAG_LENGTH |
static int |
TAG_LENGTH_SIZE |
static int |
TYPE_LENGTH_SIZE |
| Modifier and Type | Method and Description |
|---|---|
byte |
getType() |
byte[] |
getValueArray() |
ByteBuffer |
getValueByteBuffer() |
int |
getValueLength() |
int |
getValueOffset() |
boolean |
hasArray()
Tells whether or not this Tag is backed by a byte array.
|
static final int TYPE_LENGTH_SIZE
static final int TAG_LENGTH_SIZE
static final int INFRASTRUCTURE_SIZE
static final int MAX_TAG_LENGTH
byte getType()
int getValueOffset()
int getValueLength()
boolean hasArray()
byte[] getValueArray()
UnsupportedOperationException - when hasArray() return false. Use getValueByteBuffer() in such
situationByteBuffer getValueByteBuffer()
ByteBuffer containing the value bytes.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.