IResourceWriter Interface

IResourceWriter Interface

This Package | All Packages

public interface IResourceWriter

Allows an object to participate in the storing of resource- based properties.

Methods
Name Description
persistProperties() Forces all properties to be written to disk.
setBoolean(Locale locale, String name, boolean value) Sets the value of a given property for a specific locale.
setByte(Locale locale, String name, byte value) Sets the value of a given property for a specific locale.
setChar(Locale locale, String name, char value) Sets the value of a given property for a specific locale.
setDouble(Locale locale, String name, double value) Sets the value of a given property for a specific locale.
setFileLocation(String rootDirectory, String baseName) Sets the root directory and baseName for the files.
setFloat(Locale locale, String name, float value) Sets the value of a given property for a specific locale.
setInt(Locale locale, String name, int value) Sets the value of a given property for a specific locale.
setLong(Locale locale, String name, long value) Sets the value of a given property for a specific locale.
setObject(Locale locale, String name, Object value) Sets the value of a given property for a specific locale.
setShort(Locale locale, String name, short value) Sets the value of a given property for a specific locale.
setString(Locale locale, String name, String value) Sets the value of a given property for a specific locale.

Methods

IResourceWriter.persistProperties

Syntax
public void persistProperties();
Description

Forces all properties to be written to disk.

IResourceWriter.setBoolean

Syntax
public void setBoolean( Locale locale, String name, boolean value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setByte

Syntax
public void setByte( Locale locale, String name, byte value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setChar

Syntax
public void setChar( Locale locale, String name, char value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setDouble

Syntax
public void setDouble( Locale locale, String name, double value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setFileLocation

Syntax
public void setFileLocation( String rootDirectory, String baseName );
Parameters
rootDirectory
The directory to create resource files in.
baseName
Base file name. The locale information and resource extension will be postpended onto this name.
Description

Sets the root directory and baseName for the files.

IResourceWriter.setFloat

Syntax
public void setFloat( Locale locale, String name, float value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setInt

Syntax
public void setInt( Locale locale, String name, int value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setLong

Syntax
public void setLong( Locale locale, String name, long value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setObject

Syntax
public void setObject( Locale locale, String name, Object value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setShort

Syntax
public void setShort( Locale locale, String name, short value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.

IResourceWriter.setString

Syntax
public void setString( Locale locale, String name, String value );
Parameters
locale
The locale to store data for.
name
The name of resource.
value
The value to store.
Description

Sets the value of a given property for a specific locale. If the locale is null, the data is assumed to be for any locale and should be stored in the default resource file.