public final class ConstantUtf8 extends Constant
Constant,
Serialized Form| Constructor and Description |
|---|
ConstantUtf8(ConstantUtf8 c)
Initialize from another object.
|
ConstantUtf8(DataInputStream file)
Initialize instance from file data.
|
ConstantUtf8(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(DataOutputStream file)
Dump String in Utf8 format to file stream.
|
String |
getBytes() |
void |
setBytes(String bytes) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorprivate String bytes
public ConstantUtf8(ConstantUtf8 c)
ConstantUtf8(DataInputStream file) throws IOException
file - Input streamIOExceptionpublic ConstantUtf8(String bytes)
bytes - Datapublic void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump in class Constantfile - Output file streamIOExceptionpublic final String getBytes()
public final void setBytes(String bytes)
bytes - the raw bytes of this Utf-8