ReadURL - 6.5

Talend Data Mapper User Guide

EnrichVersion
6.5
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Integration) > Data mapping
Data Quality and Preparation > Third-party systems > Processing components (Integration) > Data mapping
Design and Development > Third-party systems > Processing components (Integration) > Data mapping
EnrichPlatform
Talend Studio

Name

ReadURL

Purpose

Reads the contents of a URL into a map element.

Description

The ReadURL function may be used only as an I/O expression. Specify it as the I/O expression of the element to contain the data to be read. The contents of the URL will be read during the map execution populating the values of the element containing the I/O expression and any subordinate elements.

You may use this function in multiple map elements in order to read multiple files. You may not however nest the use of this function. In other words, if a map element contains an I/O expression, no subordinate map element may contain an I/O expression. See the discussion on Input/Output for further details.

This function can be used to allow reading from multiple documents/objects in the map execution that are assigned dynamically by calling methods on the MapExecutionContext. In this case the URL is not required.

Return Type

N/A (this function may be used only as an I/O expression)

Property

URL

The URL from which to read the data. If you want to read a file, specify a file URL which is: file:// followed by the name of the file.

Property

Representation

The representation type to select when processing this URL. This is used if multiple representations are available in the structure controlling the I/O (the structure inheriting this element).

Property

Offset

The byte offset into the contents to start reading at. If not specified, 0 is assumed.

Property

Length

The number of bytes of content to read. If not specified all of the bytes are read.

Argument

Offset (Integer)

The byte offset into the contents to start reading at. If not specified, 0 is assumed.

Argument

Length (Integer)

The number of bytes of content to read. If not specified all of the bytes are read.