@InterfaceAudience.Private @InterfaceStability.Evolving public class ByteBufferTag extends Object implements Tag
Tag implementation in which value is backed by
ByteBuffer| Modifier and Type | Field and Description |
|---|---|
private ByteBuffer |
buffer |
private int |
length |
private int |
offset |
private byte |
type |
CUSTOM_TAG_TYPE_RANGE, INFRASTRUCTURE_SIZE, MAX_TAG_LENGTH, TAG_LENGTH_SIZE, TYPE_LENGTH_SIZE| Constructor and Description |
|---|
ByteBufferTag(ByteBuffer buffer,
int offset,
int length) |
| 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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneValue, copyValueTo, getValueAsByte, getValueAsLong, getValueAsString, matchingValueprivate ByteBuffer buffer
private int offset
private int length
private byte type
public ByteBufferTag(ByteBuffer buffer, int offset, int length)
public int getValueOffset()
getValueOffset in interface Tagpublic int getValueLength()
getValueLength in interface Tagpublic boolean hasArray()
Tagpublic byte[] getValueArray()
getValueArray in interface Tagpublic ByteBuffer getValueByteBuffer()
getValueByteBuffer in interface TagByteBuffer containing the value bytes.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.