Package org.eclipse.xtext.parser
Interface IEncodingProvider
-
- All Known Implementing Classes:
EclipseProjectPropertiesEncodingProvider,IEncodingProvider.Runtime,XMLEncodingProvider
public interface IEncodingProviderProvides the file encoding for a language.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIEncodingProvider.Runtime
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetEncoding(org.eclipse.emf.common.util.URI uri)Returns the encoding that should be used to read a resource from the given uri.
-
-
-
Method Detail
-
getEncoding
java.lang.String getEncoding(org.eclipse.emf.common.util.URI uri)
Returns the encoding that should be used to read a resource from the given uri. If the uri isnull, the default encoding for the language is returned. At runtime, the default encoding was either configured externally or it is obtained from the classCharset. In the UI environment, the encoding should usually be read from the workspace metadata.- Parameters:
uri- the uri of the specific resource ornullto obtain the default encoding.
-
-