Summer.Batch.Infrastructure.Item.File.Transform.FixedLengthTokenizer Class Reference

Implementation of ILineTokenizer for lines with fixed-length format. Columns are specified using ranges. More...

Inheritance diagram for Summer.Batch.Infrastructure.Item.File.Transform.FixedLengthTokenizer:
Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer Summer.Batch.Infrastructure.Item.File.Transform.ILineTokenizer

Protected Member Functions

override IList< string > DoTokenize (string line)
 Method that does the actual tokenizing. More...
 
- Protected Member Functions inherited from Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer
 AbstractLineTokenizer ()
 Default parameterless constructor to create default values. More...
 

Properties

Range[] Columns [get, set]
 The ranges of the columns to extract More...
 
- Properties inherited from Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer
string[] Names [get, set]
 Column names. May be null. More...
 
bool Strict [get, set]
 Property for strict mode. In strict mode the resulting field set must have the specified number of columns. If not in strict mode, the field set will be padded with empty columns or truncated to adjust its size. More...
 
IFieldSetFactory FieldSetFactory [get, set]
 The factory that creates field sets. Default is an instance of DefaultFieldSetFactory. More...
 
bool HasNames [get]
 Whether column names are specified. More...
 

Additional Inherited Members

- Public Member Functions inherited from Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer
IFieldSet Tokenize (string line)
 Split a line into tokens. More...
 

Detailed Description

Implementation of ILineTokenizer for lines with fixed-length format. Columns are specified using ranges.

Member Function Documentation

override IList<string> Summer.Batch.Infrastructure.Item.File.Transform.FixedLengthTokenizer.DoTokenize ( string  line)
protectedvirtual

Method that does the actual tokenizing.

Parameters
linethe line to tokenize
Returns
a list of field values

Implements Summer.Batch.Infrastructure.Item.File.Transform.AbstractLineTokenizer.

Property Documentation

Range [] Summer.Batch.Infrastructure.Item.File.Transform.FixedLengthTokenizer.Columns
getset

The ranges of the columns to extract


The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Item/File/Transform/FixedLengthTokenizer.cs