org.apache.tools.ant.taskdefs.optional.depend.constantpool

Class Utf8CPInfo

public class Utf8CPInfo extends ConstantPoolEntry

A UTF8 Constant Pool Entry.
Constructor Summary
Utf8CPInfo()
Constructor.
Method Summary
StringgetValue()
Get the string value of the UTF-8 entry
voidread(DataInputStream cpStream)
read a constant pool entry from a class stream.
StringtoString()
Print a readable version of the constant pool entry.

Constructor Detail

Utf8CPInfo

public Utf8CPInfo()
Constructor.

Method Detail

getValue

public String getValue()
Get the string value of the UTF-8 entry

Returns: the UTF-8 value as a Java string

read

public void read(DataInputStream cpStream)
read a constant pool entry from a class stream.

Parameters: cpStream the DataInputStream which contains the constant pool entry to be read.

Throws: IOException if there is a problem reading the entry from the stream.

toString

public String toString()
Print a readable version of the constant pool entry.

Returns: the string representation of this constant pool entry.

Copyright