function interpretFile(extension, deviceIdElements, interpretedPacket,
                       isElided) {
  let uri = 'file:/';

  if(!isElided && (deviceIdElements.length === 3)) {
    uri += deviceIdElements[1].substring(1) + deviceIdElements[2] + extension;
  }
  else if(isElided && (deviceIdElements.length === 2)) {
    uri += deviceIdElements[1].substring(5) + extension;
  }
  else {
    return;
  }

  interpretedPacket.uri = uri;
}
/**
 * Interpret the file data.
 * @param {String} extension The file extension.
 * @param {Array} deviceIdElements The elements of the device identifier.
 * @param {Object} interpretedPacket The partially-interpreted packet.
 * @param {Boolean} isElided Whether the UUID is elided or not.
 */
Interpret the file data.
@param {String} extension The file extension.
@param {Array} deviceIdElements The elements of the device identifier.
@param {Object} interpretedPacket The partially-interpreted packet.
@param {Boolean} isElided Whether the UUID is elided or not.
Interpret the file data . @param { String } extension The file extension . @param { Array } deviceIdElements The elements of the device identifier . @param { Object } interpretedPacket The partially - interpreted packet . @param { Boolean } isElided Whether the UUID is elided or not .
function interpretFile(extension, deviceIdElements, interpretedPacket,
                       isElided) {
  let uri = 'file:/';
  if(!isElided && (deviceIdElements.length === 3)) {
    uri += deviceIdElements[1].substring(1) + deviceIdElements[2] + extension;
  }
  else if(isElided && (deviceIdElements.length === 2)) {
    uri += deviceIdElements[1].substring(5) + extension;
  }
  else {
    return;
  }
  interpretedPacket.uri = uri;
}
function interpretFile ( extension , deviceIdElements , interpretedPacket , isElided ) { let uri = 'file:/' ; if ( ! isElided && ( deviceIdElements . length === 3 ) ) { uri += deviceIdElements [ 1 ] . substring ( 1 ) + deviceIdElements [ 2 ] + extension ; } else if ( isElided && ( deviceIdElements . length === 2 ) ) { uri += deviceIdElements [ 1 ] . substring ( 5 ) + extension ; } else { return ; } interpretedPacket . uri = uri ; }
Interpret the file data.
Interpret the file data .