Package org.apache.bcel.classfile
Class ConstantUtf8
java.lang.Object
org.apache.bcel.classfile.Constant
org.apache.bcel.classfile.ConstantUtf8
- All Implemented Interfaces:
Serializable
,Cloneable
,Node
This class is derived from the abstract
Constant class
and represents a reference to a Utf8 encoded string.
- Version:
- $Id: ConstantUtf8.java 386056 2006-03-15 11:31:56Z tcurdt $
- Author:
- M. Dahm
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.bcel.classfile.Constant
clone, copy, equals, getComparator, getTag, hashCode, setComparator
-
Constructor Details
-
ConstantUtf8
Initialize from another object. -
ConstantUtf8
- Parameters:
bytes
- Data
-
-
Method Details
-
accept
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. -
dump
Dump String in Utf8 format to file stream.- Specified by:
dump
in classConstant
- Parameters:
file
- Output file stream- Throws:
IOException
-
getBytes
- Returns:
- Data converted to string.
-
setBytes
- Parameters:
bytes
- the raw bytes of this Utf-8
-
toString
-