public static class IEncodingProvider.Runtime extends Object implements IEncodingProvider
IEncodingProvider.Runtime| Constructor and Description |
|---|
IEncodingProvider.Runtime() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultEncoding() |
String |
getEncoding(org.eclipse.emf.common.util.URI uri)
Returns the encoding that should be used to read a resource
from the given uri.
|
void |
setDefaultEncoding(String defaultEncoding) |
public String getEncoding(org.eclipse.emf.common.util.URI uri)
IEncodingProvidernull, the default encoding for the language
is returned.
At runtime, the default encoding was either configured externally or
it is obtained from the class Charset.
In the UI environment, the encoding should usually be read from the workspace
metadata.getEncoding in interface IEncodingProvideruri - the uri of the specific resource or null to obtain the default encoding.public String getDefaultEncoding()
public void setDefaultEncoding(String defaultEncoding)
Copyright © 2015. All Rights Reserved.