C# 클래스 EdiFabric.Sdk.EdiToObject.ConsoleApplication.X12Samples

X12Stream reads item by item from the EDI file stream. The final structure looks like this: ISA GS Message or ParsingException ... (the rest of the messages or errors)... GE IEA ... (the rest of the interchanges) ...
파일 보기 프로젝트 열기: DonZoeggerle/ediFabric.Sdk.EdiToObject

공개 메소드들

메소드 설명
AccessInterchangeSegments ( ) : void

Get the interchange header and trailer as typed objects.

HandleErrors ( ) : void

Extract all of the errors. The framework does not raise errors. Instead it contains the errors in ParsingException items. This allows the stream to not block, should a message error is raised.

ParseAll ( ) : void

Reads through all items - messages, control segments and errors. Reads the whole stream altogether.

ParseAllStreaming ( ) : void

Reads through all items - messages, control segments and errors. Reads an item at a time.

ParseWithCustomEncoding ( ) : void

Parse with custom encoding. The default encoding is Encoding.Default .

ParseWithExplicitRulesAssemblyName ( ) : void

Parse with rules assembly name. Can be used if assembly name was not set in the .config or if the rules classes are spread across multiple assemblies.

ParseWithNonDefaultClass ( ) : void

Parse with custom namespace prefix. All classes can have custom namespace prefix, e.g. everything before the last part (starting with .X12) can be customized. Can be used if multiple versions of the same transaction set need to be used.

PullDifferentMessageTypes ( ) : void

Extract only certain messages. EDI files can contain multiple groups with each group containing different message types. Although all will be parsed (if a rules class exist otherwise an error item will be created), only a subset can be pulled out.

메소드 상세

AccessInterchangeSegments() 공개 정적인 메소드

Get the interchange header and trailer as typed objects.
public static AccessInterchangeSegments ( ) : void
리턴 void

HandleErrors() 공개 정적인 메소드

Extract all of the errors. The framework does not raise errors. Instead it contains the errors in ParsingException items. This allows the stream to not block, should a message error is raised.
public static HandleErrors ( ) : void
리턴 void

ParseAll() 공개 정적인 메소드

Reads through all items - messages, control segments and errors. Reads the whole stream altogether.
public static ParseAll ( ) : void
리턴 void

ParseAllStreaming() 공개 정적인 메소드

Reads through all items - messages, control segments and errors. Reads an item at a time.
public static ParseAllStreaming ( ) : void
리턴 void

ParseWithCustomEncoding() 공개 정적인 메소드

Parse with custom encoding. The default encoding is Encoding.Default .
public static ParseWithCustomEncoding ( ) : void
리턴 void

ParseWithExplicitRulesAssemblyName() 공개 정적인 메소드

Parse with rules assembly name. Can be used if assembly name was not set in the .config or if the rules classes are spread across multiple assemblies.
public static ParseWithExplicitRulesAssemblyName ( ) : void
리턴 void

ParseWithNonDefaultClass() 공개 정적인 메소드

Parse with custom namespace prefix. All classes can have custom namespace prefix, e.g. everything before the last part (starting with .X12) can be customized. Can be used if multiple versions of the same transaction set need to be used.
public static ParseWithNonDefaultClass ( ) : void
리턴 void

PullDifferentMessageTypes() 공개 정적인 메소드

Extract only certain messages. EDI files can contain multiple groups with each group containing different message types. Although all will be parsed (if a rules class exist otherwise an error item will be created), only a subset can be pulled out.
public static PullDifferentMessageTypes ( ) : void
리턴 void