FileDocCategorySizeDatePackage
Utf8CPInfo.javaAPI DocApache Ant 1.702012Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.depend.constantpool

Utf8CPInfo

public class Utf8CPInfo extends ConstantPoolEntry
A UTF8 Constant Pool Entry.

Fields Summary
private String
value
The String value of the UTF-8 entry
Constructors Summary
public Utf8CPInfo()
Constructor.

        super(CONSTANT_UTF8, 1);
    
Methods Summary
public java.lang.StringgetValue()
Get the string value of the UTF-8 entry

return
the UTF-8 value as a Java string

        return value;
    
public voidread(java.io.DataInputStream cpStream)
read a constant pool entry from a class stream.

param
cpStream the DataInputStream which contains the constant pool entry to be read.
exception
IOException if there is a problem reading the entry from the stream.

        value = cpStream.readUTF();
    
public java.lang.StringtoString()
Print a readable version of the constant pool entry.

return
the string representation of this constant pool entry.

        return "UTF8 Value = " + value;