public final class ConstantUtf8 extends Constant
Constant
,
Serialized FormConstructor and Description |
---|
ConstantUtf8(ConstantUtf8 c)
Initialize from another object.
|
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() |
static ConstantUtf8 |
getCachedInstance(String s) |
static ConstantUtf8 |
getInstance(DataInputStream file) |
static ConstantUtf8 |
getInstance(String s) |
void |
setBytes(String bytes)
Deprecated.
|
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, setComparator
public ConstantUtf8(ConstantUtf8 c)
public ConstantUtf8(String bytes)
bytes
- Datapublic static ConstantUtf8 getCachedInstance(String s)
public static ConstantUtf8 getInstance(String s)
public static ConstantUtf8 getInstance(DataInputStream file) throws IOException
IOException
public void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump
in class Constant
file
- Output file streamIOException
public final String getBytes()
public final void setBytes(String bytes)
bytes
- the raw bytes of this Utf-8Copyright © 2017. All rights reserved.