import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;

public class SimpleHuffProcessor implements IHuffProcessor {
    
    private HuffViewer myViewer;
    
    public int compress(InputStream in, OutputStream out, boolean force) throws IOException {
        myViewer.showError("compress is not implemented");
        return 0;
    }

    public int preprocessCompress(InputStream in) throws IOException {
        myViewer.showError("preprocessCompress is not implemented");
        return 0;
    }

    public void setViewer(HuffViewer viewer) {
        myViewer = viewer;
    }

    public int uncompress(InputStream in, OutputStream out) throws IOException {
        myViewer.showError("uncompress is not implemented");
        return 0;
    }
    
    private void showMessage(ArrayList<String> list){
        myViewer.update(list);
    }

    public int transform(InputStream in, OutputStream out) throws IOException{
        myViewer.showError("transform is not implemented");
        return 0;
    }

}
