C# Class Summer.Batch.Infrastructure.Item.File.Transform.DelimitedLineTokenizer

Implementation of ILineTokenizer that splits the input string using a configurable delimiter. A column can be surrounded by a configurable quote character to include the delimiter.
Inheritance: Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer
ファイルを表示 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
DelimitedLineTokenizer ( ) : System.Collections.Generic

Default constructor.

Protected Methods

Method Description
DoTokenize ( string line ) : IList

Method that does the actual tokenizing.

Private Methods

Method Description
IsDelimiter ( char chars, int i, int endIndexLastDelimiter ) : bool

Checks if the delimiter string has been encountered.

RetrieveToken ( char chars, int start, int end ) : string

Retrieves a token from a character array.

SearchQuote ( IReadOnlyList chars, int &start, int &end ) : bool

Search quote in given range.

Method Details

DelimitedLineTokenizer() public method

Default constructor.
public DelimitedLineTokenizer ( ) : System.Collections.Generic
return System.Collections.Generic

DoTokenize() protected method

Method that does the actual tokenizing.
protected DoTokenize ( string line ) : IList
line string the line to tokenize
return IList