com.vladium.jcd.cls.constant
Class CONSTANT_Utf8_info
java.lang.Object
com.vladium.jcd.cls.constant.CONSTANT_info
com.vladium.jcd.cls.constant.CONSTANT_Utf8_info
- All Implemented Interfaces:
- IClassFormatOutput, java.lang.Cloneable
public final class CONSTANT_Utf8_info
- extends CONSTANT_info
The CONSTANT_Utf8_info structure is used to represent constant string values.
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.
- Author:
- (C) 2001, Vlad Roubtsov
Field Summary |
java.lang.String |
m_value
|
static byte |
TAG
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TAG
public static final byte TAG
- See Also:
- Constant Field Values
m_value
public java.lang.String m_value
CONSTANT_Utf8_info
public CONSTANT_Utf8_info(java.lang.String value)
CONSTANT_Utf8_info
protected CONSTANT_Utf8_info(UDataInputStream bytes)
throws java.io.IOException
- Throws:
java.io.IOException
tag
public final byte tag()
- Description copied from class:
CONSTANT_info
- Returns the tag byte for this CONSTANT type [this data is
static class data].
- Specified by:
tag
in class CONSTANT_info
accept
public java.lang.Object accept(ICONSTANTVisitor visitor,
java.lang.Object ctx)
- Specified by:
accept
in class CONSTANT_info
toString
public java.lang.String toString()
- Specified by:
toString
in class CONSTANT_info
writeInClassFormat
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
- Specified by:
writeInClassFormat
in interface IClassFormatOutput
- Overrides:
writeInClassFormat
in class CONSTANT_info
- Throws:
java.io.IOException