Esempio n. 1
0
File: GZip.cs Progetto: Vita7y/GZip
        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);
            }
        }
Esempio n. 2
0
 private void FillParameters(Parameters.OperationType type, string input, string output)
 {
     _parameters.InputFileName  = input;
     _parameters.OutputFileName = output;
     _parameters.Operation      = type;
 }