|
X12Reader Constructor (Stream, FuncMessageContext, Assembly, Encoding, Boolean, SyntaxSet, Int32)
|
Initializes a new instance of the
X12Reader class.
Namespace:
EdiFabric.Framework.Readers
Assembly:
EdiFabric.Framework (in EdiFabric.Framework.dll) Version: 1.0.0.0 (9.2.2.0)
Syntaxpublic X12Reader(
Stream ediStream,
Func<MessageContext, Assembly> assemblyFactory,
Encoding encoding = null,
bool continueOnError = false,
SyntaxSet syntaxSet = null,
int maxSegmentLength = 5000
)
Public Sub New (
ediStream As Stream,
assemblyFactory As Func(Of MessageContext, Assembly),
Optional encoding As Encoding = Nothing,
Optional continueOnError As Boolean = false,
Optional syntaxSet As SyntaxSet = Nothing,
Optional maxSegmentLength As Integer = 5000
)
Parameters
- ediStream
- Type: System.IOStream
The EDI stream to read from. - assemblyFactory
- Type: SystemFuncMessageContext, Assembly
The delegate to return the assembly containing the EDI classes. - encoding (Optional)
- Type: System.TextEncoding
The encoding. The default is Encoding.UTF8. - continueOnError (Optional)
- Type: SystemBoolean
Whether to continue searching for valid data after an error occurs. - syntaxSet (Optional)
- Type: EdiFabric.Core.Model.EdiSyntaxSet
The alpha-numeric validator. - maxSegmentLength (Optional)
- Type: SystemInt32
The maximum length of a segment after which the search for segment terminator seizes.
Return Value
Type:
A new instance of the
X12Reader class.
See Also