public class EclipseProjectPropertiesEncodingProvider extends IEncodingProvider.Runtime
org.eclipse.core.internal.preferences.EclipsePreferences.IEncodingProvider.Runtime| Constructor and Description |
|---|
EclipseProjectPropertiesEncodingProvider() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.lang.String |
getFromProperties(org.eclipse.emf.common.util.URI uri) |
protected java.lang.String |
getValue(java.util.Properties properties,
org.eclipse.emf.common.util.URI resourceUri,
java.lang.String prefix) |
protected java.util.Properties |
loadProperties(org.eclipse.emf.common.util.URI projectURI) |
getDefaultEncoding, setDefaultEncodingpublic EclipseProjectPropertiesEncodingProvider()
public java.lang.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 java.lang.String getFromProperties(org.eclipse.emf.common.util.URI uri)
throws java.io.IOException
java.io.IOExceptionprotected java.util.Properties loadProperties(org.eclipse.emf.common.util.URI projectURI)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getValue(java.util.Properties properties,
org.eclipse.emf.common.util.URI resourceUri,
java.lang.String prefix)