Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder Class Reference

Decodes EBCDIC values to their corresponding C# objects. More...

Public Member Functions

 EbcdicDecoder (Encoding encoding)
 Custom constructor given encoding More...
 
 EbcdicDecoder (string encodingName)
 Custom constructor given encoding name More...
 
object Decode (byte[] bytes, FieldFormat fieldFormat)
 Main decode method. Switch based on the given FieldFormat More...
 

Static Public Member Functions

static decimal ParseZoned (string value)
 Parses a Zoned number More...
 
static decimal ParsePacked (byte[] bytes)
 Parses a packed number More...
 
static decimal ParsePacked (byte[] bytes, int start, int end)
 Parses a packed number More...
 

Detailed Description

Decodes EBCDIC values to their corresponding C# objects.

Constructor & Destructor Documentation

Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.EbcdicDecoder ( Encoding  encoding)

Custom constructor given encoding

Parameters
encoding
Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.EbcdicDecoder ( string  encodingName)

Custom constructor given encoding name

Parameters
encodingName

Member Function Documentation

object Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.Decode ( byte[]  bytes,
FieldFormat  fieldFormat 
)

Main decode method. Switch based on the given FieldFormat

Parameters
bytes
fieldFormat
Returns
Exceptions
UnexpectedFieldTypeException 
static decimal Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.ParsePacked ( byte[]  bytes)
static

Parses a packed number

Parameters
bytesa byte array where a number has been pack encoded
Returns
the encoded number
static decimal Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.ParsePacked ( byte[]  bytes,
int  start,
int  end 
)
static

Parses a packed number

Parameters
bytesa byte array where a number has been pack encoded
startthe beginning index, inclusive
endthe end index, exclusive
Returns
the encoded number
static decimal Summer.Batch.Extra.Ebcdic.Encode.EbcdicDecoder.ParseZoned ( string  value)
static

Parses a Zoned number

Parameters
valuea string where a number has been zone encoded
Returns
the encoded number

The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Ebcdic/Encode/EbcdicDecoder.cs