public interface CharsetDetector
Modifier and Type | Method and Description |
---|---|
Charset |
detect(byte[] bytes)
Detects the charset of the input bytes.
|
Charset |
detect(InputStream stream)
Detects the charset of the stream.
|
Charset |
detect(String str)
Detects the charset of the input string.
|
List<CharsetMatch> |
detectAll(byte[] bytes)
Detects all charsets that appear to be plausible matches with the input
data.
|
List<CharsetMatch> |
detectAll(InputStream stream)
Detects all charsets that appear to be plausible matches with the input
data.
|
List<CharsetMatch> |
detectAll(String str)
Detects all charsets that appear to be plausible matches with the input
data.
|
Charset detect(String str)
str
- the string to analyzeCharset detect(byte[] bytes)
bytes
- the bytes to analyzeCharset detect(InputStream stream)
stream
- the stream to analyzeList<CharsetMatch> detectAll(String str)
str
- the string to analyzeList<CharsetMatch> detectAll(byte[] bytes)
bytes
- the bytes to analyzeList<CharsetMatch> detectAll(InputStream stream)
stream
- the stream to analyzeCopyright © 2021. All rights reserved.