Package com._1c.g5.v8.dt.compare.ui.util
Class ResourceUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.util.ResourceUtils
-
public class ResourceUtils extends Object
Utils for working with resource content.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
readEncodedStreamContentAccessorContent(org.eclipse.compare.IEncodedStreamContentAccessor encodedStreamContentAccessor)
Reads the givenIEncodedStreamContentAccessor
content.static String
readStreamContent(InputStream inputStream, String charsetName)
Reads the input stream content.
-
-
-
Method Detail
-
readEncodedStreamContentAccessorContent
public static String readEncodedStreamContentAccessorContent(org.eclipse.compare.IEncodedStreamContentAccessor encodedStreamContentAccessor)
Reads the givenIEncodedStreamContentAccessor
content.- Parameters:
encodedStreamContentAccessor
- the givenIEncodedStreamContentAccessor
, may benull
- Returns:
- the
IEncodedStreamContentAccessor
content, may benull
-
readStreamContent
public static String readStreamContent(InputStream inputStream, String charsetName)
Reads the input stream content.- Parameters:
inputStream
- the given input stream, can not benull
charsetName
- charset name, can not benull
- Returns:
- the input stream content, can not be
null
-
-