|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileServiceCodePageConverter
This interface is used by the extension point It allows overriding the Universal File Subsystem translation of files, and results in binary transfer, with calls to the implementor to handle code page conversion.
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 remoteEncoding,
IFileService fs)
Indicates the priority of this code page converter if more than one code page converter handle a particular encoding. |
boolean |
isServerEncodingSupported(String remoteEncoding,
IFileService fs)
Indicates whether or not the specified server encoding and subsystem implementation is supported by this code page converter |
Method Detail |
---|
byte[] convertClientStringToRemoteBytes(String remotePath, String clientString, String remoteEncoding, IFileService fs)
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
void convertFileFromRemoteEncoding(String remotePath, File file, String remoteEncoding, String localEncoding, IFileService fs)
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 converter
RuntimeException
- (wrapping a CharacterCodingException or IOException) in case of an error transposing from source to target encodingboolean isServerEncodingSupported(String remoteEncoding, IFileService fs)
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
int getPriority(String remoteEncoding, IFileService fs)
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |