public class InternalUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
deleteSubObjectData(byte[] data,
KeyScout counter)
Delete a key from the file.
|
protected static boolean |
findSubObjectData(java.nio.ByteBuffer data,
java.lang.String key)
Check to see if a key exists within a file.
|
static java.util.List<Tag<?>> |
getListData(java.nio.ByteBuffer data,
int limit)
Get the list of tags based upon bytes.
|
protected static Tag<?> |
getSubObjectData(java.nio.ByteBuffer data,
java.lang.String key)
Get a tag based upon the name.
|
protected static byte[] |
replaceSubObjectData(byte[] data,
KeyScout counter,
byte[] dataToReplace)
Replace a tag with another tag.
|
protected static KeyScout |
scoutObjectData(java.nio.ByteBuffer data,
java.lang.String key,
KeyScout counter)
This object goes through the data and scouts out the information from the given key.
|
protected static byte[] |
setSubObjectData(byte[] data,
KeyScout counter,
byte[] dataToReplace)
Insert in a new tag.
|
protected static Tag<?> getSubObjectData(java.nio.ByteBuffer data, java.lang.String key)
ObjectDataStructure.get(String), this is a recursive method.data - The list of data.key - The keyprotected static boolean findSubObjectData(java.nio.ByteBuffer data,
java.lang.String key)
ObjectDataStructure.find(String) method.data - The array of bytes.key - The key to findprotected static byte[] deleteSubObjectData(byte[] data,
KeyScout counter)
data - The input from the data.counter - The scout information.protected static byte[] replaceSubObjectData(byte[] data,
KeyScout counter,
byte[] dataToReplace)
data - The input array of bytescounter - The scout objectdataToReplace - The bytes of the replacement data.protected static byte[] setSubObjectData(byte[] data,
KeyScout counter,
byte[] dataToReplace)
data - The input array of bytescounter - The scout objectdataToReplace - The bytes of the replacement data.protected static KeyScout scoutObjectData(java.nio.ByteBuffer data, java.lang.String key, KeyScout counter)
data - The input array of byteskey - The keycounter - The Scout object.public static java.util.List<Tag<?>> getListData(java.nio.ByteBuffer data, int limit)
This is meant for internal use only.
data - the array of byteslimit - the number of bytes that should be read.