org.apache.bcel.classfile
public final class ConstantUtf8 extends Constant
See Also: Constant
Constructor Summary | |
---|---|
ConstantUtf8(ConstantUtf8 c)
Initialize from another object. | |
ConstantUtf8(String bytes) |
Method Summary | |
---|---|
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(String s) |
static ConstantUtf8 | getInstance(DataInputStream file) |
void | setBytes(String bytes) |
String | toString() |
Parameters: bytes Data
Parameters: v Visitor object
Parameters: file Output file stream
Throws: IOException
Returns: Data converted to string.
Deprecated:
Parameters: bytes the raw bytes of this Utf-8
Returns: String representation