public final class CONSTANT_Utf8_info extends CONSTANT_info
The bytes of multibyte characters are stored in the class file in big-endian (high byte first) order. There are two differences between this format and the "standard" UTF-8 format. First, the null byte (byte)0 is encoded using the two-byte format rather than the one-byte format, so that Java Virtual Machine UTF-8 strings never have embedded nulls. Second, only the one-byte, two-byte, and three-byte formats are used. The Java Virtual Machine does not recognize the longer UTF-8 formats.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
m_value |
static byte |
TAG |
Modifier | Constructor and Description |
---|---|
|
CONSTANT_Utf8_info(java.lang.String value) |
protected |
CONSTANT_Utf8_info(UDataInputStream bytes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ICONSTANTVisitor visitor,
java.lang.Object ctx) |
byte |
tag()
Returns the tag byte for this CONSTANT type [this data is
static class data].
|
java.lang.String |
toString() |
void |
writeInClassFormat(UDataOutputStream out) |
clone, new_CONSTANT_info, tagToString, width
public static final byte TAG
public java.lang.String m_value
public CONSTANT_Utf8_info(java.lang.String value)
protected CONSTANT_Utf8_info(UDataInputStream bytes) throws java.io.IOException
java.io.IOException
public final byte tag()
CONSTANT_info
tag
in class CONSTANT_info
public java.lang.Object accept(ICONSTANTVisitor visitor, java.lang.Object ctx)
accept
in class CONSTANT_info
public java.lang.String toString()
toString
in class CONSTANT_info
public void writeInClassFormat(UDataOutputStream out) throws java.io.IOException
writeInClassFormat
in interface IClassFormatOutput
writeInClassFormat
in class CONSTANT_info
java.io.IOException