| java.lang.Object org.apache.harmony.pack200.BandSet
All known Subclasses: org.apache.harmony.pack200.IcBands, org.apache.harmony.pack200.BcBands, org.apache.harmony.pack200.AttrDefinitionBands, org.apache.harmony.pack200.FileBands, org.apache.harmony.pack200.ClassBands, org.apache.harmony.pack200.CpBands, org.apache.harmony.pack200.NewAttributeBands,
BandSet | abstract public class BandSet (Code) | | |
Method Summary | |
protected void | debug(String message) This is a local debugging message to aid the developer in writing this
class. | public int[] | decodeBandInt(String name, InputStream in, BHSDCodec defaultCodec, int count) | public int[][] | decodeBandInt(String name, InputStream in, BHSDCodec defaultCodec, int[] counts) | public long[] | decodeBandLong(String name, InputStream in, BHSDCodec codec, int count) | public byte[] | encodeBandLong(long[] data, BHSDCodec codec) | public CPClass[] | parseCPClassReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPNameAndType[] | parseCPDescriptorReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPDouble[] | parseCPDoubleReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPFieldRef[] | parseCPFieldRefReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPFloat[] | parseCPFloatReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPInteger[] | parseCPIntReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPInterfaceMethodRef[] | parseCPInterfaceMethodRefReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPLong[] | parseCPLongReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPMethodRef[] | parseCPMethodRefReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPUTF8[] | parseCPSignatureReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPString[] | parseCPStringReferences(String name, InputStream in, BHSDCodec codec, int count) | public CPUTF8[] | parseCPUTF8References(String name, InputStream in, BHSDCodec codec, int count) | public CPUTF8[][] | parseCPUTF8References(String name, InputStream in, BHSDCodec codec, int[] counts) | public long[] | parseFlags(String name, InputStream in, int count, BHSDCodec codec, boolean hasHi) | public long[][] | parseFlags(String name, InputStream in, int counts, BHSDCodec codec, boolean hasHi) | public long[] | parseFlags(String name, InputStream in, int count, BHSDCodec hiCodec, BHSDCodec loCodec) | public long[][] | parseFlags(String name, InputStream in, int counts, BHSDCodec hiCodec, BHSDCodec loCodec) | public String[] | parseReferences(String name, InputStream in, BHSDCodec codec, int count, String[] reference) Helper method to parse count references from in ,
using codec to decode the values as indexes into
reference (which is populated prior to this call). | public String[][] | parseReferences(String name, InputStream in, BHSDCodec codec, int counts, String[] reference) Helper method to parse count references from in ,
using codec to decode the values as indexes into
reference (which is populated prior to this call). | abstract public void | unpack(InputStream inputStream) |
debug | protected void debug(String message)(Code) | | This is a local debugging message to aid the developer in writing this
class. It will be removed before going into production. If the property
'debug.pack200' is set, this will generate messages to stderr; otherwise,
it will be silent.
Parameters: message - |
decodeBandInt | public int[] decodeBandInt(String name, InputStream in, BHSDCodec defaultCodec, int count) throws IOException, Pack200Exception(Code) | | Decode a band and return an array of int values
Parameters: name - the name of the band (primarily for logging/debuggingpurposes) Parameters: in - the InputStream to decode from Parameters: defaultCodec - the default codec for this band Parameters: count - the number of elements to read an array of decoded int values throws: IOException - if there is a problem reading from the underlying inputstream throws: Pack200Exception - if there is a problem decoding the value or that the value isinvalid |
decodeBandInt | public int[][] decodeBandInt(String name, InputStream in, BHSDCodec defaultCodec, int[] counts) throws IOException, Pack200Exception(Code) | | Decode a band and return an array of int[] values
Parameters: name - the name of the band (primarily for logging/debuggingpurposes) Parameters: in - the InputStream to decode from Parameters: defaultCodec - the default codec for this band Parameters: counts - the numbers of elements to read for each int array within thearray to be returned an array of decoded int[] values throws: IOException - if there is a problem reading from the underlying inputstream throws: Pack200Exception - if there is a problem decoding the value or that the value isinvalid |
decodeBandLong | public long[] decodeBandLong(String name, InputStream in, BHSDCodec codec, int count) throws IOException, Pack200Exception(Code) | | Decode a band and return an array of long values
Parameters: name - the name of the band (primarily for logging/debuggingpurposes) Parameters: in - the InputStream to decode from Parameters: codec - the default codec for this band Parameters: count - the number of elements to read an array of decoded long values throws: IOException - if there is a problem reading from the underlying inputstream throws: Pack200Exception - if there is a problem decoding the value or that the value isinvalid |
parseReferences | public String[] parseReferences(String name, InputStream in, BHSDCodec codec, int count, String[] reference) throws IOException, Pack200Exception(Code) | | Helper method to parse count references from in ,
using codec to decode the values as indexes into
reference (which is populated prior to this call). An
exception is thrown if a decoded index falls outside the range
[0..reference.length-1].
Parameters: name - the band name Parameters: in - the input stream to read from Parameters: codec - the codec to use for decoding Parameters: count - the number of references to decode Parameters: reference - the array of values to use for the indexes; oftenBandSet.cpUTF8 throws: IOException - if a problem occurs during reading from the underlying stream throws: Pack200Exception - if a problem occurs with an unexpected value or unsupportedcodec |
parseReferences | public String[][] parseReferences(String name, InputStream in, BHSDCodec codec, int counts, String[] reference) throws IOException, Pack200Exception(Code) | | Helper method to parse count references from in ,
using codec to decode the values as indexes into
reference (which is populated prior to this call). An
exception is thrown if a decoded index falls outside the range
[0..reference.length-1]. Unlike the other parseReferences, this
post-processes the result into an array of results.
Parameters: name - TODO Parameters: in - the input stream to read from Parameters: codec - the codec to use for decoding Parameters: count - the number of references to decode Parameters: reference - the array of values to use for the indexes; oftenBandSet.cpUTF8 throws: IOException - if a problem occurs during reading from the underlying stream throws: Pack200Exception - if a problem occurs with an unexpected value or unsupportedcodec |
|
|