org.apache.tomcat.util.bcel.classfile
Class ConstantUtf8
java.lang.Object
org.apache.tomcat.util.bcel.classfile.Constant
org.apache.tomcat.util.bcel.classfile.ConstantUtf8
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class ConstantUtf8
- extends Constant
This class is derived from the abstract
Constant class
and represents a reference to a Utf8 encoded string.
- Version:
- $Id: ConstantUtf8.java 1057670 2011-01-11 14:52:05Z markt $
- Author:
- M. Dahm
- See Also:
Constant
,
Serialized Form
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant |
tag |
Method Summary |
void |
dump(java.io.DataOutputStream file)
Dump String in Utf8 format to file stream. |
java.lang.String |
getBytes()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Dump String in Utf8 format to file stream.
- Specified by:
dump
in class Constant
- Parameters:
file
- Output file stream
- Throws:
java.io.IOException
getBytes
public final java.lang.String getBytes()
- Returns:
- Data converted to string.
toString
public final java.lang.String toString()
- Overrides:
toString
in class Constant
- Returns:
- String representation
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.