Class XMLEncodingProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLEncodingProvider

        public XMLEncodingProvider()
    • Method Detail

      • getEncoding

        public java.lang.String getEncoding​(org.eclipse.emf.common.util.URI uri)
        Description copied from interface: IEncodingProvider
        Returns the encoding that should be used to read a resource from the given uri. If the uri is null, 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.
        Specified by:
        getEncoding in interface IEncodingProvider
        Parameters:
        uri - the uri of the specific resource or null to obtain the default encoding.