RSE
Release 3.4

org.eclipse.rse.subsystems.files.core.subsystems
Class RemoteFileEncodingManager

java.lang.Object
  extended by org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileEncodingManager

public class RemoteFileEncodingManager
extends Object

This singleton class manages encodings of remote files.


Method Summary
 String getEncoding(String hostname, String remotePath)
          Returns the encoding for a file with the given path on a system with the given hostname.
static RemoteFileEncodingManager getInstance()
          Returns the singleton instance.
 void load()
          Loads the encoding data from disk.
 void save()
          Saves the encoding data to disk.
 void setEncoding(String hostname, String remotePath, String encoding)
          Sets the encoding for a file with the given path on a system with the given hostname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final RemoteFileEncodingManager getInstance()
Returns the singleton instance.

Returns:
the singleton instance.

getEncoding

public String getEncoding(String hostname,
                          String remotePath)
Returns the encoding for a file with the given path on a system with the given hostname.

Parameters:
hostname - the hostname of the system.
remotePath - the remote path of the file on the system.
Returns:
the encoding.

setEncoding

public void setEncoding(String hostname,
                        String remotePath,
                        String encoding)
Sets the encoding for a file with the given path on a system with the given hostname.

Parameters:
hostname - the hostname of the system.
remotePath - the remote path of the file on the system.
encoding - the encoding to set.

load

public void load()
Loads the encoding data from disk.


save

public void save()
Saves the encoding data to disk.


RSE
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.