public class HotSpotSymbol extends Object
Symbol.| Modifier and Type | Field and Description |
|---|---|
private long |
metaspaceSymbol |
| Constructor and Description |
|---|
HotSpotSymbol(long metaspaceSymbol) |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
asByteArray() |
String |
asString()
Decodes this
Symbol and returns the symbol string as String. |
private byte |
getByteAt(int index) |
private int |
getLength() |
private static String |
readModifiedUTF8(byte[] buf)
Reads the modified UTF-8 string in
buf and converts it to a String. |
private final long metaspaceSymbol
public HotSpotSymbol(long metaspaceSymbol)
public String asString()
Symbol and returns the symbol string as String.private static String readModifiedUTF8(byte[] buf)
buf and converts it to a String. The
implementation is taken from DataInputStream.readUTF(DataInput) and adapted
to operate on a byte array directly for performance reasons.DataInputStream.readUTF(DataInput)private byte[] asByteArray()
private int getLength()
private byte getByteAt(int index)