Class SegmentUtils
java.lang.Object
org.apache.commons.compress.harmony.unpack200.SegmentUtils
Utility class for unpack200
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
protected static int
Count the number of arguments in the descriptor.static int
countBit16
(int[] flags) static int
countBit16
(long[] flags) static int
countBit16
(long[][] flags) static int
countInvokeInterfaceArgs
(String descriptor) static int
countMatches
(long[][] flags, IMatcher matcher) static int
countMatches
(long[] flags, IMatcher matcher)
-
Constructor Details
-
SegmentUtils
public SegmentUtils()
-
-
Method Details
-
countArgs
-
countArgs
Count the number of arguments in the descriptor. Each long or double counts as widthOfLongsAndDoubles; all other arguments count as 1.- Parameters:
descriptor
- String for which arguments are countedwidthOfLongsAndDoubles
- int increment to apply for longs doubles. This is typically 1 when counting arguments alone, or 2 when counting arguments for invokeinterface.- Returns:
- integer count
-
countBit16
-
countBit16
-
countBit16
-
countInvokeInterfaceArgs
-
countMatches
-
countMatches
-