Package org.eclipse.xtext.parser
Class IEncodingProvider.Runtime
- java.lang.Object
-
- org.eclipse.xtext.parser.IEncodingProvider.Runtime
-
- All Implemented Interfaces:
IEncodingProvider
- Direct Known Subclasses:
EclipseProjectPropertiesEncodingProvider
- Enclosing interface:
- IEncodingProvider
public static class IEncodingProvider.Runtime extends java.lang.Object implements IEncodingProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.parser.IEncodingProvider
IEncodingProvider.Runtime
-
-
Constructor Summary
Constructors Constructor Description Runtime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultEncoding()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.voidsetDefaultEncoding(java.lang.String defaultEncoding)
-
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding(org.eclipse.emf.common.util.URI uri)
Description copied from interface:IEncodingProviderReturns 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.- Specified by:
getEncodingin interfaceIEncodingProvider- Parameters:
uri- the uri of the specific resource ornullto obtain the default encoding.
-
getDefaultEncoding
public java.lang.String getDefaultEncoding()
- Since:
- 2.4
-
setDefaultEncoding
public void setDefaultEncoding(java.lang.String defaultEncoding)
- Since:
- 2.4
-
-