public static class PropertyValueUtils.BytesUtils extends Object
| Constructor and Description |
|---|
BytesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static PropertyValue |
createFromTypeValueBytes(byte[] typeByte,
byte[] valueBytes)
Creates a
PropertyValue instance by concatenating the byte representations
of the type and the value. |
static byte[] |
getRawBytesWithoutType(PropertyValue value)
Get the raw byte representation of a
PropertyValue instance without the type byte as prefix. |
static byte[] |
getTypeByte(PropertyValue value)
Get the type byte of a
PropertyValue instance. |
public static byte[] getRawBytesWithoutType(PropertyValue value)
PropertyValue instance without the type byte as prefix.value - the PropertyValue to extract the bytespublic static byte[] getTypeByte(PropertyValue value)
PropertyValue instance. It's the first one of the
raw representation of a PropertyValue.value - the PropertyValue to extract the type bytepublic static PropertyValue createFromTypeValueBytes(byte[] typeByte, byte[] valueBytes)
PropertyValue instance by concatenating the byte representations
of the type and the value.typeByte - a byte array containing only one byte representing the value typevalueBytes - a byte array representing the property valuePropertyValueCopyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.