Class CpBands
java.lang.Object
org.apache.commons.compress.harmony.pack200.BandSet
org.apache.commons.compress.harmony.pack200.CpBands
Pack200 Constant Pool Bands
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.pack200.BandSet
segmentHeader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCPClass
(String className) boolean
existsCpClass
(String className) void
All input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read.CPConstant
<?> getConstant
(Object value) getCPClass
(String className) Gets a constant pool class for the given class name.getCPField
(String owner, String name, String desc) getCPField
(CPClass cpClass, String name, String desc) getCPIMethod
(String owner, String name, String desc) getCPIMethod
(CPClass cpClass, String name, String desc) getCPMethod
(String owner, String name, String desc) getCPMethod
(CPClass cpClass, String name, String desc) getCPNameAndType
(String name, String signature) getCPSignature
(String signature) Gets a constant pool signature.void
pack
(OutputStream out) Writes the packed set of bands to the given output stream.Methods inherited from class org.apache.commons.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
Constructor Details
-
CpBands
-
-
Method Details
-
addCPClass
-
existsCpClass
-
finaliseBands
All input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read. -
getConstant
-
getCPClass
Gets a constant pool class for the given class name.- Parameters:
className
- a fully-qualifed class name.- Returns:
- a a constant pool class.
-
getCPField
-
getCPField
-
getCPIMethod
-
getCPIMethod
-
getCPMethod
-
getCPMethod
-
getCPNameAndType
-
getCPSignature
Gets a constant pool signature.- Parameters:
signature
- the signature string.- Returns:
- a constant pool signature.
-
getCPUtf8
-
pack
Description copied from class:BandSet
Writes the packed set of bands to the given output stream.- Specified by:
pack
in classBandSet
- Parameters:
out
- TODO- Throws:
IOException
- If an I/O error occurs.Pack200Exception
- If a Pack200 semantic error occurs.
-