Add a private constructor to hide the implicit public one.
parent
5c43e36118
commit
49a5efff46
|
@ -21,6 +21,10 @@ public abstract class CharsetUtils {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(CharsetUtils.class);
|
private static Logger logger = LoggerFactory.getLogger(CharsetUtils.class);
|
||||||
|
|
||||||
|
private CharsetUtils() {
|
||||||
|
throw new AssertionError("No us.codecraft.webmagic.utils.CharsetUtils instances for you!");
|
||||||
|
}
|
||||||
|
|
||||||
public static String detectCharset(String contentType, byte[] contentBytes) throws IOException {
|
public static String detectCharset(String contentType, byte[] contentBytes) throws IOException {
|
||||||
String charset;
|
String charset;
|
||||||
// charset
|
// charset
|
||||||
|
|
Loading…
Reference in New Issue