KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > editors > text > IEncodingSupport


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.editors.text;
12
13
14 /**
15  * Interface to be implemented by objects supporting character encodings.
16  *
17  * @since 2.0
18  */

19 public interface IEncodingSupport{
20
21     /**
22      * Sets the character encoding.
23      *
24      * @param encoding the character encoding
25      */

26     void setEncoding(String JavaDoc encoding);
27
28     /**
29      * Returns the character encoding.
30      *
31      * @return the character encoding
32      */

33     String JavaDoc getEncoding();
34
35     /**
36      * Returns the default character encoding.
37      *
38      * @return the default character encoding
39      */

40     String JavaDoc getDefaultEncoding();
41 }
42
Popular Tags