Top Description Constructors Methods
org.apache.commons.compress.harmony.unpack200

public final Class SegmentUtils

extends Object
Class Inheritance

Utility class for unpack200

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
countArgs(final String descriptor)

protected static int

Returns:

integer count
countArgs
(final String
String for which arguments are counted
descriptor
,
final int
int increment to apply for longs doubles. This is typically 1 when counting arguments alone, or 2 when counting arguments for invokeinterface.
widthOfLongsAndDoubles
)

Count the number of arguments in the descriptor.

public static int
countBit16(final int[] flags)

public static int
countBit16(final long[] flags)

public static int
countBit16(final long[][] flags)

public static int
countInvokeInterfaceArgs(final String descriptor)

public static int
countMatches(final long[] flags, final IMatcher matcher)

public static int
countMatches(final long[][] flags, final IMatcher matcher)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SegmentUtilsback to summary
public SegmentUtils()

Method Detail

countArgsback to summary
public static int countArgs(final String descriptor)
countArgsback to summary
protected static int countArgs(final String descriptor, final int widthOfLongsAndDoubles)

Count the number of arguments in the descriptor. Each long or double counts as widthOfLongsAndDoubles; all other arguments count as 1.

Parameters
descriptor:String

String for which arguments are counted

widthOfLongsAndDoubles:int

int increment to apply for longs doubles. This is typically 1 when counting arguments alone, or 2 when counting arguments for invokeinterface.

Returns:int

integer count

countBit16back to summary
public static int countBit16(final int[] flags)
countBit16back to summary
public static int countBit16(final long[] flags)
countBit16back to summary
public static int countBit16(final long[][] flags)
countInvokeInterfaceArgsback to summary
public static int countInvokeInterfaceArgs(final String descriptor)
countMatchesback to summary
public static int countMatches(final long[] flags, final IMatcher matcher)
countMatchesback to summary
public static int countMatches(final long[][] flags, final IMatcher matcher)