Apache Tomcat 7.0.28

org.apache.tomcat.util.bcel.classfile
Class ConstantUtf8

java.lang.Object
  extended by org.apache.tomcat.util.bcel.classfile.Constant
      extended by org.apache.tomcat.util.bcel.classfile.ConstantUtf8
All Implemented Interfaces:
Serializable, 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

Field Summary
 
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant
tag
 
Method Summary
 void dump(DataOutputStream file)
          Dump String in Utf8 format to file stream.
 String getBytes()
           
 String toString()
           
 
Methods inherited from class org.apache.tomcat.util.bcel.classfile.Constant
clone, equals, getTag, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

dump

public final void dump(DataOutputStream file)
                throws IOException
Dump String in Utf8 format to file stream.

Specified by:
dump in class Constant
Parameters:
file - Output file stream
Throws:
IOException

getBytes

public final String getBytes()
Returns:
Data converted to string.

toString

public final String toString()
Overrides:
toString in class Constant
Returns:
String representation

Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.