01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.editors.text;
11:
12: /**
13: * Interface to be implemented by objects supporting character encodings.
14: *
15: * @since 2.0
16: */
17: public interface IEncodingSupport {
18:
19: /**
20: * Sets the character encoding.
21: *
22: * @param encoding the character encoding
23: */
24: void setEncoding(String encoding);
25:
26: /**
27: * Returns the character encoding.
28: *
29: * @return the character encoding
30: */
31: String getEncoding();
32:
33: /**
34: * Returns the default character encoding.
35: *
36: * @return the default character encoding
37: */
38: String getDefaultEncoding();
39: }
|