public class IntegratedComposition extends Object implements IntegratedIntegerCODEC
| Constructor and Description |
|---|
IntegratedComposition(IntegratedIntegerCODEC f1,
IntegratedIntegerCODEC f2)
Compose a scheme from a first one (f1) and a second one (f2).
|
| Modifier and Type | Method and Description |
|---|---|
void |
compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data from an array to another array.
|
String |
toString() |
void |
uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Uncompress data from an array to another array.
|
public IntegratedComposition(IntegratedIntegerCODEC f1, IntegratedIntegerCODEC f2)
f1 - first codecf2 - second codecpublic void compress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODECcompress in interface IntegerCODECin - input arrayinpos - location in the input arrayinlength - how many integers to compressout - output arrayoutpos - where to write in the output arraypublic void uncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
IntegerCODECuncompress in interface IntegerCODECin - array containing data in compressed forminpos - where to start reading in the arrayinlength - length of the compressed data (ignored by some
schemes)out - array where to write the compressed outputoutpos - where to write the compressed output in outCopyright © 2015. All Rights Reserved.