Package com._1c.g5.v8.dt.ui.util
Class InputStreamCharsetDetector
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.util.InputStreamCharsetDetector
-
public class InputStreamCharsetDetector extends Object
Charset detector forInputStream
-
-
Constructor Summary
Constructors Constructor Description InputStreamCharsetDetector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getCharset(InputStream stream, boolean withBOM)
Tries to guess charset for givenInputStream
-
-
-
Method Detail
-
getCharset
public static String getCharset(InputStream stream, boolean withBOM)
Tries to guess charset for givenInputStream
- Parameters:
stream
- stream to get charset for, can benull
withBOM
- whether to add information about BOM presence- Returns:
- charset name for give stream, can be
null
-
-