001    package edu.harvard.deas.hyperenc;
002    
003    import java.io.Serializable;
004    
005    /** Permutes the bits within a page in some prescribed manner. */
006    public interface PageShuffler extends Serializable
007    {
008      /** Shuffles a page of bytes.
009          @param block Block to shuffle page with;
010          @param page Page to be shuffled.
011          @return Shuffled page. */
012      public byte [] shufflePage(byte [] block, byte [] page);
013    }