public class CharsetDetector extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Charset |
DEFAULT_CHARSET |
static int |
DEFAULT_DETECT_LENGTH |
| 构造器和说明 |
|---|
CharsetDetector() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Charset |
detect(byte[] bytes) |
static Charset |
detect(byte[] bytes,
int length) |
static Charset |
detect(byte[] bytes,
int offset,
int length) |
static Charset |
detect(File file) |
static Charset |
detect(File file,
int length) |
static Charset |
detect(InputStream input) |
static Charset |
detect(InputStream input,
int length) |
static Charset |
detect(String path) |
static Charset |
detect(String path,
int length) |
static Charset |
detect(URL url) |
static Charset |
detect(URL url,
int length) |
public static final Charset DEFAULT_CHARSET
public static final int DEFAULT_DETECT_LENGTH
public static Charset detect(byte[] bytes)
public static Charset detect(byte[] bytes, int length)
public static Charset detect(byte[] bytes, int offset, int length)
public static Charset detect(InputStream input) throws IOException
IOExceptionpublic static Charset detect(InputStream input, int length) throws IOException
IOExceptionCopyright © 2023. All rights reserved.