public class EclipseProjectPropertiesEncodingProvider extends IEncodingProvider.Runtime
org.eclipse.core.internal.preferences.EclipsePreferences.IEncodingProvider.Runtime| Constructor and Description |
|---|
EclipseProjectPropertiesEncodingProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding(org.eclipse.emf.common.util.URI uri)
Returns the encoding that should be used to read a resource
from the given uri.
|
protected String |
getFromProperties(org.eclipse.emf.common.util.URI uri) |
protected String |
getValue(Properties properties,
org.eclipse.emf.common.util.URI resourceUri,
String prefix) |
protected Properties |
loadProperties(org.eclipse.emf.common.util.URI projectURI) |
getDefaultEncoding, setDefaultEncodingpublic EclipseProjectPropertiesEncodingProvider()
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 IEncodingProvidergetEncoding in class IEncodingProvider.Runtimeuri - the uri of the specific resource or null to obtain the default encoding.protected String getFromProperties(org.eclipse.emf.common.util.URI uri) throws IOException
IOExceptionprotected Properties loadProperties(org.eclipse.emf.common.util.URI projectURI) throws IOException
IOExceptionprotected String getValue(Properties properties, org.eclipse.emf.common.util.URI resourceUri, String prefix)
Copyright © 2015. All Rights Reserved.