private static IGZip SelectOperationType(Parameters.OperationType operation, Stream read, Stream write, int blockLength) { switch (operation) { case Parameters.OperationType.COMPRESS: return(new GZipCompress(read, write, blockLength, 0)); case Parameters.OperationType.DECOMPRESS: return(new GZipDecompress(read, write)); default: return(null); } }
private void FillParameters(Parameters.OperationType type, string input, string output) { _parameters.InputFileName = input; _parameters.OutputFileName = output; _parameters.Operation = type; }