public class CharsetDetector extends Object
| Constructor and Description |
|---|
CharsetDetector() |
| Modifier and Type | Method and Description |
|---|---|
static Charset |
detect(InputStream in,
Charset... charsets)
探测编码
|
public static Charset detect(InputStream in, Charset... charsets)
in - 流,使用后关闭此流charsets - 需要测试用的编码,null或空使用默认的编码数组Copyright © 2021. All rights reserved.