public final class PackageUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PACKAGE_NAME_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readPackageName(java.nio.ByteBuffer buffer,
int offset)
Reads the package name from the buffer and repositions the buffer to point directly after
the package name.
|
static void |
writePackageName(java.nio.ByteBuffer buffer,
java.lang.String packageName)
Writes the provided package name to the buffer in UTF-16.
|
public static final int PACKAGE_NAME_SIZE
public static java.lang.String readPackageName(java.nio.ByteBuffer buffer,
int offset)
buffer - The buffer containing the package name.offset - The offset in the buffer to read from.public static void writePackageName(java.nio.ByteBuffer buffer,
java.lang.String packageName)
buffer - The buffer that will be written to.packageName - The package name that will be written to the buffer.