C# 클래스 Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder

Decodes EBCDIC values to their corresponding C# objects.
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
Decode ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : object

Main decode method. Switch based on the given FieldFormat

EbcdicDecoder ( Encoding encoding ) : System

Custom constructor given encoding

EbcdicDecoder ( string encodingName ) : System

Custom constructor given encoding name

ParsePacked ( byte bytes ) : decimal

Parses a packed number

ParsePacked ( byte bytes, int start, int end ) : decimal

Parses a packed number

ParseZoned ( string value ) : decimal

Parses a Zoned number

비공개 메소드들

메소드 설명
DecodeHex ( byte bytes ) : string

Decode byte array as hexadecimal

DecodePacked ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : decimal

Decode a byte array using the packed format

DecodeZoned ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : decimal

Decode a byte array using the zoned format

GetLastIndex ( char lastChar, bool &positive ) : string
ScaleResult ( Summer.Batch.Extra.Copybook.FieldFormat fieldFormat, decimal result ) : decimal

Scale result using the given fieldFormat

메소드 상세

Decode() 공개 메소드

Main decode method. Switch based on the given FieldFormat
 
public Decode ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : object
bytes byte
fieldFormat Summer.Batch.Extra.Copybook.FieldFormat
리턴 object

EbcdicDecoder() 공개 메소드

Custom constructor given encoding
public EbcdicDecoder ( Encoding encoding ) : System
encoding System.Text.Encoding
리턴 System

EbcdicDecoder() 공개 메소드

Custom constructor given encoding name
public EbcdicDecoder ( string encodingName ) : System
encodingName string
리턴 System

ParsePacked() 공개 정적인 메소드

Parses a packed number
public static ParsePacked ( byte bytes ) : decimal
bytes byte a byte array where a number has been pack encoded
리턴 decimal

ParsePacked() 공개 정적인 메소드

Parses a packed number
public static ParsePacked ( byte bytes, int start, int end ) : decimal
bytes byte a byte array where a number has been pack encoded
start int the beginning index, inclusive
end int the end index, exclusive
리턴 decimal

ParseZoned() 공개 정적인 메소드

Parses a Zoned number
public static ParseZoned ( string value ) : decimal
value string a string where a number has been zone encoded
리턴 decimal