|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.services.files.DefaultFileServiceCodePageConverter
public class DefaultFileServiceCodePageConverter
Constructor Summary | |
---|---|
DefaultFileServiceCodePageConverter()
|
Method Summary | |
---|---|
byte[] |
convertClientStringToRemoteBytes(String remotePath,
String clientString,
String remoteEncoding,
IFileService fs)
Converts a client string to remote bytes, for use when uploading in binary mode. |
void |
convertFileFromRemoteEncoding(String remotePath,
File file,
String remoteEncoding,
String localEncoding,
IFileService fs)
Converts the specified file (which was downloaded from the server in binary mode) from server encoding bytes, to local encoding |
int |
getPriority(String remoteEString,
IFileService fs)
to make another converter take precedence over this, supply a code page converter returning a lower number (i.e. higher priority) |
boolean |
isServerEncodingSupported(String remoteEncoding,
IFileService fs)
Indicates whether or not the specified server encoding and subsystem implementation is supported by this code page converter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileServiceCodePageConverter()
Method Detail |
---|
public byte[] convertClientStringToRemoteBytes(String remotePath, String clientString, String remoteEncoding, IFileService fs)
IFileServiceCodePageConverter
convertClientStringToRemoteBytes
in interface IFileServiceCodePageConverter
remotePath
- the path of the remote fileclientString
- the client string to convertremoteEncoding
- The remote encoding for the desired server bytesfs
- The file service to apply conversion to.
Can be used to determine implementation specific settings to the converter
public void convertFileFromRemoteEncoding(String remotePath, File file, String remoteEncoding, String localEncoding, IFileService fs)
IFileServiceCodePageConverter
convertFileFromRemoteEncoding
in interface IFileServiceCodePageConverter
remotePath
- the path of the remote filefile
- The file to convertlocalEncoding
- The remote encoding of the filefs
- The file service to apply conversion to.
Can be used to determine implementation specific settings to the converterpublic boolean isServerEncodingSupported(String remoteEncoding, IFileService fs)
IFileServiceCodePageConverter
isServerEncodingSupported
in interface IFileServiceCodePageConverter
remoteEncoding
- The remote encoding from the server to checkfs
- The file service to apply conversion to.
Can be used to determine implementation specific settings to the converter
public int getPriority(String remoteEString, IFileService fs)
getPriority
in interface IFileServiceCodePageConverter
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |