private CompressionType GetCompressionTypeFor(FileSpec file)
        {
            var message = "=> " + file.FileName;
            var actualCompressionType = _compressionType;
            var overrideType          = file.CompressionType;

            if (!string.IsNullOrEmpty(overrideType))
            {
                actualCompressionType = ParseCompressionType(overrideType);
                if (actualCompressionType != _compressionType)
                {
                    message += string.Format(" (CompressionType: {0})", actualCompressionType.ToString());
                }
            }
            LogMessage(message, true);
            return(actualCompressionType);
        }
 protected internal virtual string Compress(FileSpec file, string originalContent)
 {
     _compressor.CompressionType   = GetCompressionTypeFor(file);
     _compressor.LineBreakPosition = LineBreakPosition;
     return(_compressor.Compress(originalContent));
 }