Home > Class Reference > ENSLIB namespace > EnsLib.EDI.ASTM.Parser
Private  Storage   

EnsLib.EDI.ASTM.Parser


class EnsLib.EDI.ASTM.Parser extends %RegisteredObject

This is the ASTM Interchange parser

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
9 8


Summary


Properties
%CharCount %CurrentDocument %LineCount %SegmentCount
%ServiceInterface %Stream Done ReadTimeout
StartTimeout

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
DoneGet ParseIOStream ReadSegment Reset
ResetPosition mapCtlChars stripWhitespace


Properties


• property %CharCount as %Integer;
• property %CurrentDocument as EnsLib.EDI.Document;
The current Document
• property %LineCount as %Integer;
• property %SegmentCount as %Integer;
Count of Segments tallied during parse of a TransactionSet
• property %ServiceInterface as EnsLib.EDI.ServiceInterface;
The config provider
• property %Stream as %IO.I.CharacterStream;
• property Done as %Boolean [ Calculated,ReadOnly ];
• property ReadTimeout as %Numeric(MINVAL=-1) [ InitialExpression = 5 ];
Number of seconds to wait for each read of document data inside a started document to be available on the input stream
• property StartTimeout as %Numeric(MINVAL=-1) [ InitialExpression = 5 ];
Number of seconds to wait for the start of a document to be available on the input stream

Methods


• method DoneGet() as %Boolean
This is a Get accessor method for the Done property.
• method ParseIOStream(pIOStream As %IO.I.CharacterStream, Output pDocument As EnsLib.EDI.ASTM.Document, ByRef pFrameNum As %Integer = 1) as %Status
Parse a complete ASTM document from the stream
• method ReadSegment(pIOStream As %IO.I.CharacterStream, pTimeout As %Numeric, ByRef pFrameNum As %Integer, Output pLine As %String, Output pEOT As %Boolean, ByRef pSTX As %Boolean = 0) as %Status
• method Reset()
• method ResetPosition()
• classmethod mapCtlChars(s As %String) as %String
• method stripWhitespace(pLine As %String) as %String
Strip off leading whitespace from the line