# LocalizedExternalFile

Import: `import com.install4j.api.beans.LocalizedExternalFile;`

```java
public class LocalizedExternalFile implements Serializable
```

Container for a set of localized files that represent a single [`ExternalFile`](ExternalFile.md) with textual content.
If you want the user to be able to specify localized versions of a text file for a single property,
you can declare the property to be of type `LocalizedExternalFile`. Important:
you have to initialize the field with an instance rather than leave it to be `null`.

In the install4j IDE, the user will be presented with a dialog that allows file selection for all
installer languages that are configured on the General Settings->Languages tab. At runtime, call
[`Context.getExternalFile`](../context/Context.md#getexternalfile-localizedexternalfile-boolean) to
get the actual file for further use in your bean implementation.

In your bean info, use the [`FilePropertyDescriptor`](../beaninfo/FilePropertyDescriptor.md) class to
register the property. All attributes of `FilePropertyDescriptor` are supported
for `LocalizedExternalFile`.


**See also:**

- [ExternalFile](ExternalFile.md)

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getLanguageIdToExternalFile()`](#getlanguageidtoexternalfile) | `Map<String, ExternalFile>` | Returns the map from language IDs to [`ExternalFile`](ExternalFile.md)s. |
| [`setLanguageIdToExternalFile(Map<String, ExternalFile>)`](#setlanguageidtoexternalfile-map-string-externalfile) | `void` | Sets the map from language IDs to [`ExternalFile`](ExternalFile.md)s. |
| [`equals(Object)`](#equals-object) | `boolean` |  |
| [`hashCode()`](#hashcode) | `int` |  |

### getLanguageIdToExternalFile()

```java
public Map<String, ExternalFile> getLanguageIdToExternalFile()
```

Returns the map from language IDs to [`ExternalFile`](ExternalFile.md)s. You do not
have to use this method, a more convenient way to retrieve the actual file at
runtime is to call [`Context.getExternalFile`](../context/Context.md#getexternalfile-localizedexternalfile-boolean).


**Returns:** the map

### setLanguageIdToExternalFile(Map<String, ExternalFile>)

```java
public void setLanguageIdToExternalFile(Map<String, ExternalFile> languageIdToExternalFile)
```

Sets the map from language IDs to [`ExternalFile`](ExternalFile.md)s. This method is called by
the install4j IDE.


**Parameters:**

- `languageIdToExternalFile` — the map

### equals(Object)

```java
public boolean equals(Object o)
```

### hashCode()

```java
public int hashCode()
```

## Constructors

| Signature | Description |
|---|---|
| [`LocalizedExternalFile()`](#localizedexternalfile) |  |

### LocalizedExternalFile()

```java
public LocalizedExternalFile()
```

