org.eclipse.rse.subsystems.files.core.subsystems
Class RemoteFileEncodingManager
java.lang.Object
org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileEncodingManager
-
public class RemoteFileEncodingManager
- extends
Object
This singleton class manages encodings of remote files.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
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.
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.