public final class ConstantUtf8 extends Constant
Constant
,
Serialized FormConstructor and Description |
---|
ConstantUtf8(ConstantUtf8 c)
Initialize from another object.
|
ConstantUtf8(java.lang.String bytes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
void |
dump(java.io.DataOutputStream file)
Dump String in Utf8 format to file stream.
|
java.lang.String |
getBytes() |
static ConstantUtf8 |
getCachedInstance(java.lang.String s) |
static ConstantUtf8 |
getInstance(java.io.DataInputStream file) |
static ConstantUtf8 |
getInstance(java.lang.String s) |
void |
setBytes(java.lang.String bytes)
Deprecated.
|
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, setComparator
public ConstantUtf8(ConstantUtf8 c)
public ConstantUtf8(java.lang.String bytes)
bytes
- Datapublic static ConstantUtf8 getCachedInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.lang.String s)
public static ConstantUtf8 getInstance(java.io.DataInputStream file) throws java.io.IOException
java.io.IOException
public void accept(Visitor v)
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
public final java.lang.String getBytes()
public final void setBytes(java.lang.String bytes)
bytes
- the raw bytes of this Utf-8