Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter Class Reference

Implementation of ISubFormatter that allows formatting a number read from the input record into a string. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter:
Summer.Batch.Extra.Sort.Legacy.Format.ISubFormatter

Public Member Functions

void Format (byte[] input, byte[] output)
 Formats a number read from the input record as a string and writes it in the output record. More...
 

Properties

int Length [get, set]
 The length of the formatted string. More...
 
int OutputIndex [get, set]
 The zero-based index of the first byte to write in the output record. More...
 
IAccessor< decimal > Accessor [get, set]
 Accessor for the number to format. More...
 
string Edit [get, set]
 The edit string that specifies the formatting of the output string. Uses the syntax of the EDIT command of DFSORT. More...
 
string PositiveSign [get, set]
 The character(s) for the positive sign. There should be exactly one or two characters. If there is one character, it is used every time Edit specifies a sign ("S"). If there is two characters, the first one is used before the number and the second one is used after (e.g., to produce "(123)", use "()" as sign). Default is " ". More...
 
string NegativeSign [get, set]
 The character(s) for the negative sign. There should be exactly one or two characters. If there is one character, it is used every time Edit specifies a sign ("S"). If there is two characters, the first one is used before the number and the second one is used after (e.g., to produce "(123)", use "()" as sign). Default is "-". More...
 
Encoding Encoding [get, set]
 The encoding to use to write the output string in the byte array. More...
 
- Properties inherited from Summer.Batch.Extra.Sort.Legacy.Format.ISubFormatter
int Length [get]
 The length of the formatted sub-part More...
 
int OutputIndex [get]
 The zero-based index of the first byte to write in the output record. More...
 

Detailed Description

Implementation of ISubFormatter that allows formatting a number read from the input record into a string.

Member Function Documentation

void Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.Format ( byte[]  input,
byte[]  output 
)

Formats a number read from the input record as a string and writes it in the output record.

Parameters
inputthe input record
outputthe output record

Implements Summer.Batch.Extra.Sort.Legacy.Format.ISubFormatter.

Property Documentation

IAccessor<decimal> Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.Accessor
getset

Accessor for the number to format.

string Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.Edit
getset

The edit string that specifies the formatting of the output string. Uses the syntax of the EDIT command of DFSORT.

Encoding Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.Encoding
getset

The encoding to use to write the output string in the byte array.

int Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.Length
getset

The length of the formatted string.

string Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.NegativeSign
getset

The character(s) for the negative sign. There should be exactly one or two characters. If there is one character, it is used every time Edit specifies a sign ("S"). If there is two characters, the first one is used before the number and the second one is used after (e.g., to produce "(123)", use "()" as sign). Default is "-".

int Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.OutputIndex
getset

The zero-based index of the first byte to write in the output record.

string Summer.Batch.Extra.Sort.Legacy.Format.NumericEditFormatter.PositiveSign
getset

The character(s) for the positive sign. There should be exactly one or two characters. If there is one character, it is used every time Edit specifies a sign ("S"). If there is two characters, the first one is used before the number and the second one is used after (e.g., to produce "(123)", use "()" as sign). Default is " ".


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/Format/NumericEditFormatter.cs