Class CPUTF8
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantPoolEntry
org.apache.commons.compress.harmony.unpack200.bytecode.CPUTF8
UTF8 constant pool entry, used for storing long Strings.
-
Field Summary
Fields inherited from class ConstantPoolEntry
CP_Class, CP_Double, CP_Fieldref, CP_Float, CP_Integer, CP_InterfaceMethodref, CP_Long, CP_Methodref, CP_NameAndType, CP_String, CP_UTF8, globalIndexFields inherited from class ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetGlobalIndex(int index) Sets the global index.toString()Gets the underlying string.protected voidWrites this instance to the given output stream.Methods inherited from class ConstantPoolEntry
doWrite, getGlobalIndex, getTagMethods inherited from class ClassFileEntry
getNestedClassFileEntries, objectHashCode, resolve, write
-
Constructor Details
-
CPUTF8
-
CPUTF8
Creates a new instance- Parameters:
string- a constant pool string.globalIndex- index in CpBands- Throws:
NullPointerException- if utf8 is null.
-
-
Method Details
-
equals
- Specified by:
equalsin classConstantPoolEntry
-
hashCode
- Specified by:
hashCodein classConstantPoolEntry
-
setGlobalIndex
-
toString
- Specified by:
toStringin classClassFileEntry
-
underlyingString
-
writeBody
Description copied from class:ConstantPoolEntryWrites this instance to the given output stream.- Specified by:
writeBodyin classConstantPoolEntry- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-