private void ReadContentHeaders()
        {
            this.contentHeaders = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase);
            while (true)
            {
                string line = this.ReadLine();
                if (0 < line.Length)
                {
                    int colon = line.IndexOf(':');
                    if (colon <= 0)
                    {
                        throw Error.BatchStreamInvalidHeaderValueSpecified(line);
                    }

                    string name  = line.Substring(0, colon).Trim();
                    string value = line.Substring(colon + 1).Trim();
                    this.contentHeaders.Add(name, value);
                }
                else
                {
                    break;
                }
            }
        }