Skip to content

source.getFileExt

Signature: source.getFileExt()

Returns: String fileExtension - the file extension associated with the source file

Returns the file extension associated with the source file.

Note

Only applies to channels where the message source is a file.

Note

This method only applies to the following formatted messages: HL7, ASTM, Binary, CSV, DICOM, EDIFACT, Old Fxd Width, Fxd Length, ISO 8583, JSON, Text, X12, XML.

Parameters

None

Example

// Example: Retrieve the file extension of the source message.

// Get the file extension associated with the source file
var fileExtension = source.getFileExt(); // e.g. "hl7", "xml", "json"