Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire