public interface EncodingDetector
| Modifier and Type | Method and Description |
|---|---|
String |
guessEncoding(InputStream input)
Guesses the data encoding.
|
default String |
guessEncoding(InputStream input,
String contentType)
Guesses the data encoding.
|
String guessEncoding(InputStream input) throws IOException
input - the input stream containing the data.IOException - if there is an error whilst guessing the encoding.default String guessEncoding(InputStream input, String contentType) throws IOException
input - the input stream containing the data.contentType - the declared content type of the data.IOException - if there is an error whilst guessing the encoding.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.