FlatFiles.SeparatedValueRecordParser.SeparatedValueRecordParser C# (CSharp) Method

SeparatedValueRecordParser() public method

public SeparatedValueRecordParser ( RetryReader reader, FlatFiles.SeparatedValueOptions options ) : System
reader RetryReader
options FlatFiles.SeparatedValueOptions
return System
        public SeparatedValueRecordParser(RetryReader reader, SeparatedValueOptions options)
        {
            this.reader = reader;
            this.options = options.Clone();
            this.separatorMatcher = getMatcher(options.Separator);
            this.recordSeparatorMatcher = getMatcher(options.RecordSeparator);
            if (options.RecordSeparator.StartsWith(options.Separator))
            {
                string postfix = options.RecordSeparator.Substring(options.Separator.Length);
                this.postfixMatcher = getMatcher(postfix);
            }
            this.token = new StringBuilder();
        }