public class KeyUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
ATTRIBUTE_DELIMETER |
static byte[] |
ATTRIBUTE_DELIMETER_ARRAY |
static byte |
ELEMENT_ATTRIBUTE_DELIMETER |
static byte[] |
ELEMENT_ATTRIBUTE_DELIMETER_ARRAY |
static byte |
ELEMENT_DELIMETER |
static byte[] |
ELEMENT_DELIMETER_ARRAY |
Constructor and Description |
---|
KeyUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractAttributeName(byte[] key) |
static byte[] |
extractAttributeNameBytes(byte[] key) |
static java.lang.String |
extractElementName(byte[] key) |
static java.lang.String |
extractHandle(byte[] key) |
static byte[] |
extractHandleBytes(byte[] key) |
static byte[] |
getAttributeKey(byte[] handleKeyBytes,
java.lang.String attributeName) |
static byte[] |
getAttributeKey(java.lang.String handle,
java.lang.String attributeName) |
static byte[] |
getAttributeSearchKey(java.lang.String handle) |
static byte |
getByteAfterHandle(byte[] key,
int handleLength) |
static byte[] |
getElementAttributeKey(byte[] elementAttributeStartKeyBytes,
java.lang.String attributeName) |
static byte[] |
getElementAttributeKey(java.lang.String handle,
java.lang.String elementName,
java.lang.String attributeName) |
static byte[] |
getElementAttributeSearchKey(java.lang.String handle,
java.lang.String elementName) |
static byte[] |
getElementKey(byte[] handleKeyBytes,
java.lang.String elementName) |
static byte[] |
getElementKey(java.lang.String handle,
java.lang.String elementName) |
static byte[] |
getHandleKey(java.lang.String handle) |
static java.lang.String |
getStringAtOffset(byte[] pascalBytes,
int offset) |
static boolean |
isAttributeKey(byte[] key) |
static boolean |
isElementAttributekey(byte[] key) |
static boolean |
isElementKey(byte[] key) |
static boolean |
isHandleKey(byte[] key) |
static java.lang.String |
keyToString(byte[] key) |
static int |
readHeadAt(byte[] bytes,
int i) |
static byte[] |
removeHandleBytesAndFirstDelimeterFromKey(byte[] key) |
static byte[] |
removeHandleBytesFromKey(byte[] key) |
public static final byte ATTRIBUTE_DELIMETER
public static final byte ELEMENT_DELIMETER
public static final byte ELEMENT_ATTRIBUTE_DELIMETER
public static final byte[] ATTRIBUTE_DELIMETER_ARRAY
public static final byte[] ELEMENT_DELIMETER_ARRAY
public static final byte[] ELEMENT_ATTRIBUTE_DELIMETER_ARRAY
public static byte[] getHandleKey(java.lang.String handle)
public static byte[] getAttributeSearchKey(java.lang.String handle)
public static byte[] getAttributeKey(java.lang.String handle, java.lang.String attributeName)
public static byte[] getAttributeKey(byte[] handleKeyBytes, java.lang.String attributeName)
public static byte[] getElementKey(java.lang.String handle, java.lang.String elementName)
public static byte[] getElementKey(byte[] handleKeyBytes, java.lang.String elementName)
public static byte[] getElementAttributeSearchKey(java.lang.String handle, java.lang.String elementName)
public static byte[] getElementAttributeKey(java.lang.String handle, java.lang.String elementName, java.lang.String attributeName)
public static byte[] getElementAttributeKey(byte[] elementAttributeStartKeyBytes, java.lang.String attributeName)
public static boolean isHandleKey(byte[] key)
public static byte getByteAfterHandle(byte[] key, int handleLength)
public static boolean isAttributeKey(byte[] key)
public static boolean isElementKey(byte[] key)
public static boolean isElementAttributekey(byte[] key)
public static int readHeadAt(byte[] bytes, int i)
public static java.lang.String getStringAtOffset(byte[] pascalBytes, int offset)
public static java.lang.String extractHandle(byte[] key)
public static byte[] extractHandleBytes(byte[] key)
public static java.lang.String extractAttributeName(byte[] key)
public static byte[] extractAttributeNameBytes(byte[] key)
public static byte[] removeHandleBytesFromKey(byte[] key)
public static byte[] removeHandleBytesAndFirstDelimeterFromKey(byte[] key)
public static java.lang.String extractElementName(byte[] key)
public static java.lang.String keyToString(byte[] key)