Class ResourceUtils


  • public class ResourceUtils
    extends Object
    Utils for working with resource content.
    • Method Detail

      • readEncodedStreamContentAccessorContent

        public static String readEncodedStreamContentAccessorContent​(org.eclipse.compare.IEncodedStreamContentAccessor encodedStreamContentAccessor)
        Reads the given IEncodedStreamContentAccessor content.
        Parameters:
        encodedStreamContentAccessor - the given IEncodedStreamContentAccessor, may be null
        Returns:
        the IEncodedStreamContentAccessor content, may be null
      • readStreamContent

        public static String readStreamContent​(InputStream inputStream,
                                               String charsetName)
        Reads the input stream content.
        Parameters:
        inputStream - the given input stream, can not be null
        charsetName - charset name, can not be null
        Returns:
        the input stream content, can not be null