Top Description Inners Fields Constructors Methods
org.apache.commons.compress.harmony.pack200

public Class IcBands

extends BandSet
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.ArrayList, .HashMap, .List, .Map, .Objects, .Set, .TreeSet

Inner class bands (corresponds to the ic_bands set of bands in the pack200 specification)

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private int
private final CpBands
private final Set<IcBands.IcTuple>
private final Map<String, List<IcBands.IcTuple>>
Inherited from org.apache.commons.compress.harmony.pack200.BandSet:
effortsegmentHeader

Constructor Summary

AccessConstructor and Description
public
IcBands(final SegmentHeader segmentHeader, final CpBands cpBands, final int effort)

Method Summary

Modifier and TypeMethod and Description
public void
addInnerClass(final String name, final String outerName, final String innerName, int flags)

private void
addToMap(final String outerName, final IcBands.IcTuple icTuple)

public void
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.

public IcBands.IcTuple
getIcTuple(final CPClass inner)

public List<IcBands.IcTuple>
getInnerClassesForOuter(final String outerClassName)

private String
getOuter(final String name)

private boolean
namesArePredictable(final String name, final String outerName, final String innerName)

public void
pack(final OutputStream
TODO
outputStream
)

Implements abstract org.apache.commons.compress.harmony.pack200.BandSet.pack.

Write the packed set of bands to the given output stream
Inherited from org.apache.commons.compress.harmony.pack200.BandSet:
cpEntryListToArraycpEntryOrNullListToArrayencodeBandIntencodeFlagsencodeFlagsencodeScalarencodeScalarintegerListToArraylongListToArray

Field Detail

bit16Countback to summary
private int bit16Count
cpBandsback to summary
private final CpBands cpBands
innerClassesback to summary
private final Set<IcBands.IcTuple> innerClasses
outerToInnerback to summary
private final Map<String, List<IcBands.IcTuple>> outerToInner

Constructor Detail

IcBandsback to summary
public IcBands(final SegmentHeader segmentHeader, final CpBands cpBands, final int effort)

Method Detail

addInnerClassback to summary
public void addInnerClass(final String name, final String outerName, final String innerName, int flags)
addToMapback to summary
private void addToMap(final String outerName, final IcBands.IcTuple icTuple)
finaliseBandsback to summary
public void 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.

getIcTupleback to summary
public IcBands.IcTuple getIcTuple(final CPClass inner)
getInnerClassesForOuterback to summary
public List<IcBands.IcTuple> getInnerClassesForOuter(final String outerClassName)
getOuterback to summary
private String getOuter(final String name)
namesArePredictableback to summary
private boolean namesArePredictable(final String name, final String outerName, final String innerName)
packback to summary
public void pack(final OutputStream outputStream) throws IOException, Pack200Exception

Implements abstract org.apache.commons.compress.harmony.pack200.BandSet.pack.

Doc from org.apache.commons.compress.harmony.pack200.BandSet.pack.

Write the packed set of bands to the given output stream

Parameters
outputStream:OutputStream

TODO

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs.
Pack200Exception:
TODO
org.apache.commons.compress.harmony.pack200 back to summary

pack-priv Class IcBands.IcTuple

extends Object
implements Comparable<IcBands.IcTuple>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable

Field Summary

Modifier and TypeField and Description
protected CPClass
C

protected CPClass
protected int
F

protected CPUTF8
N

Constructor Summary

AccessConstructor and Description
pack-priv
IcTuple(final CPClass C, final int F, final CPClass C2, final CPUTF8 N)

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(final IcBands.IcTuple
the object to be compared.
arg0
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
public boolean
equals(final Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
clonefinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

Cback to summary
protected CPClass C
C2back to summary
protected CPClass C2
Fback to summary
protected int F
Nback to summary
protected CPUTF8 N

Constructor Detail

IcTupleback to summary
pack-priv IcTuple(final CPClass C, final int F, final CPClass C2, final CPUTF8 N)

Method Detail

compareToback to summary
public int compareTo(final IcBands.IcTuple arg0)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
arg0:IcBands.IcTuple

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
equalsback to summary
public boolean equals(final Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
isAnonymousback to summary
public boolean isAnonymous()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override