EndSegment Method
Ends writing the current segment.
Syntax
public func endSegment() throws -> Void
Remarks
EndSegment terminates writing the current segment and flushes it to the output stream/file.
You should call EndSegment to close a segment started with StartSegment, StartInterchangeHeader, StartFunctionalGroupHeader or StartTransactionHeader.