public class MoveToFrontTransformer { /* * Invert the Move-To-Front transformation * @param input * byte sequence from the output for transform() * @return * byte sequence after inverting the transformation */ public byte[] invertTransform(byte[] input) { throw new RuntimeException("You must implement this method"); } /* * Transform the byte sequence * according to the MoveToFront transformation * @param input byte sequence * @return transformed byte sequence * @throws NullPointerException */ public byte[] transform(byte[] input) { throw new RuntimeException("You must implement this method"); } }