org.apache.bcel.classfile
public final class ConstantUtf8 extends Constant
Version: $Id: ConstantUtf8.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Constant
| Field Summary | |
|---|---|
| String | bytes |
| Constructor Summary | |
|---|---|
| ConstantUtf8(ConstantUtf8 c)
Initialize from another object. | |
| ConstantUtf8(DataInputStream file)
Initialize instance from file data.
| |
| 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() |
| void | setBytes(String bytes) |
| String | toString() |
Parameters: file Input stream
Throws: IOException
Parameters: bytes Data
Parameters: v Visitor object
Parameters: file Output file stream
Throws: IOException
Returns: Data converted to string.
Parameters: bytes the raw bytes of this Utf-8
Returns: String representation