Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 280451
Collapse All | Expand All

(-)src/org/eclipse/rse/services/files/DefaultFileServiceCodePageConverter.java (-2 / +4 lines)
Lines 1-5 Link Here
1
/********************************************************************************
1
/********************************************************************************
2
 * Copyright (c) 2007, 2010 IBM Corporation. All rights reserved.
2
 * Copyright (c) 2007, 2011 IBM Corporation. All rights reserved.
3
 * This program and the accompanying materials are made available under the terms
3
 * This program and the accompanying materials are made available under the terms
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
5
 * available at http://www.eclipse.org/legal/epl-v10.html
5
 * available at http://www.eclipse.org/legal/epl-v10.html
Lines 14-19 Link Here
14
 * David McKnight    (IBM)  -[246857] Rename problem when a file is opened in the editor
14
 * David McKnight    (IBM)  -[246857] Rename problem when a file is opened in the editor
15
 * David McKnight    (IBM)  -[279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
15
 * David McKnight    (IBM)  -[279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
16
 * David McKnight    (IBM)  -[324669] [dstore] IBM-eucJP to UTF-8 char conversion appends nulls to end of file during text-mode download
16
 * David McKnight    (IBM)  -[324669] [dstore] IBM-eucJP to UTF-8 char conversion appends nulls to end of file during text-mode download
17
 * David McKnight    (IBM)  -[280451] IFileServiceCodePageConverter.convertClientStringToRemoteBytes() should throw runtime exception
17
 ********************************************************************************/
18
 ********************************************************************************/
18
package org.eclipse.rse.services.files;
19
package org.eclipse.rse.services.files;
19
20
Lines 42-49 Link Here
42
		}
43
		}
43
		catch (Exception e)
44
		catch (Exception e)
44
		{
45
		{
46
			// outstream could not be written properly: report
47
			throw new RuntimeException(e);
45
		}
48
		}
46
		return clientString.getBytes();
47
	}
49
	}
48
50
49
	public void convertFileFromRemoteEncoding(String remotePath, File file, String remoteEncoding,
51
	public void convertFileFromRemoteEncoding(String remotePath, File file, String remoteEncoding,
(-)src/org/eclipse/rse/services/files/IFileServiceCodePageConverter.java (-1 / +3 lines)
Lines 1-5 Link Here
1
/********************************************************************************
1
/********************************************************************************
2
 * Copyright (c) 2007, 2009 IBM Corporation. All rights reserved.
2
 * Copyright (c) 2007, 2011 IBM Corporation. All rights reserved.
3
 * This program and the accompanying materials are made available under the terms
3
 * This program and the accompanying materials are made available under the terms
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
5
 * available at http://www.eclipse.org/legal/epl-v10.html
5
 * available at http://www.eclipse.org/legal/epl-v10.html
Lines 12-17 Link Here
12
 * David McKnight    (IBM)  -[209704] [api] Ability to override default encoding conversion needed.
12
 * David McKnight    (IBM)  -[209704] [api] Ability to override default encoding conversion needed.
13
 * David McKnight    (IBM)  -[220379] [api] Provide a means for contributing custom BIDI encodings
13
 * David McKnight    (IBM)  -[220379] [api] Provide a means for contributing custom BIDI encodings
14
 * David McKnight    (IBM)  -[279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
14
 * David McKnight    (IBM)  -[279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
15
 * David McKnight    (IBM)  -[280451] IFileServiceCodePageConverter.convertClientStringToRemoteBytes() should throw runtime exception
15
 ********************************************************************************/
16
 ********************************************************************************/
16
17
17
package org.eclipse.rse.services.files;
18
package org.eclipse.rse.services.files;
Lines 36-41 Link Here
36
	 * @param fs                The file service to apply conversion to.
37
	 * @param fs                The file service to apply conversion to.
37
	 *                          Can be used to determine implementation specific settings to the converter
38
	 *                          Can be used to determine implementation specific settings to the converter
38
	 * @return					The bytes to upload to the server
39
	 * @return					The bytes to upload to the server
40
	 * @throws RuntimeException (wrapping a CharacterCodingException or IOException) in case of an error transposing from source to target encoding
39
	 */
41
	 */
40
	public byte [] convertClientStringToRemoteBytes(String remotePath, String clientString, String remoteEncoding, IFileService fs);
42
	public byte [] convertClientStringToRemoteBytes(String remotePath, String clientString, String remoteEncoding, IFileService fs);
41
43

Return to bug 280451