| Modifier and Type | Field and Description |
|---|---|
| private final Codec | |
| private final Codec | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | decode(final InputStream
the input stream to read from in)Implements abstract org. |
| public int | decode(final InputStream
the input stream to read from in, final long the previous value read, which must be supplied if the codec is a delta encoding last)Implements abstract org. |
| public int[] | decodeInts(final int
the number of values to decode n, final InputStream the input stream to read from in)Overrides org. n values from in.
|
| public byte[] | encode(final int
the value to encode value)Implements abstract org. |
| public byte[] | encode(final int
the value to encode value, final int the previous value encoded (for delta encodings) last)Implements abstract org. |
| public Codec | |
| public Codec | |
| public int | |
| private int | |
| private void | |
| public String |
| aCodec | back to summary |
|---|---|
| private final Codec aCodec | |
| bCodec | back to summary |
|---|---|
| private final Codec bCodec | |
| k | back to summary |
|---|---|
| private int k | |
| last | back to summary |
|---|---|
| private int last | |
| RunCodec | back to summary |
|---|---|
| public RunCodec(final int k, final Codec aCodec, final Codec bCodec) throws Pack200Exception | |
| decode | back to summary |
|---|---|
| public int decode(final InputStream in) throws IOException, Pack200Exception Implements abstract org. Doc from org. Decodes a sequence of bytes from the given input stream, returning the value as a long. Note that this method can only be applied for non-delta encodings.
| |
| decode | back to summary |
|---|---|
| public int decode(final InputStream in, final long last) throws IOException, Pack200Exception Implements abstract org. Doc from org. Decodes a sequence of bytes from the given input stream, returning the value as a long. If this encoding is a delta encoding (d=1) then the previous value must be passed in as a parameter. If it is a non-delta encoding, then it does not matter what value is passed in, so it makes sense for the value to be passed in by default using code similar to:
long last = 0;
while (condition) {
last = codec.decode(in, last);
// do something with last
}
| |
| decodeInts | back to summary |
|---|---|
| public int[] decodeInts(final int n, final InputStream in) throws IOException, Pack200Exception Overrides org. Doc from org. Decodes a sequence of
| |
| encode | back to summary |
|---|---|
| public byte[] encode(final int value) throws Pack200Exception Implements abstract org. Doc from org. Encodes a single value into a sequence of bytes. Note that this method can only be used for non-delta encodings.
| |
| encode | back to summary |
|---|---|
| public byte[] encode(final int value, final int last) throws Pack200Exception Implements abstract org. Doc from org. Encodes a single value into a sequence of bytes.
| |
| getACodec | back to summary |
|---|---|
| public Codec getACodec() | |
| getBCodec | back to summary |
|---|---|
| public Codec getBCodec() | |
| getK | back to summary |
|---|---|
| public int getK() | |
| normalise | back to summary |
|---|---|
| private int normalise(int value, final Codec codecUsed) | |
| normalise | back to summary |
|---|---|
| private void normalise(final int[] band, final Codec codecUsed) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |