We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c43e36 commit 49a5effCopy full SHA for 49a5eff
webmagic-core/src/main/java/us/codecraft/webmagic/utils/CharsetUtils.java
@@ -21,6 +21,10 @@ public abstract class CharsetUtils {
21
22
private static Logger logger = LoggerFactory.getLogger(CharsetUtils.class);
23
24
+ private CharsetUtils() {
25
+ throw new AssertionError("No us.codecraft.webmagic.utils.CharsetUtils instances for you!");
26
+ }
27
+
28
public static String detectCharset(String contentType, byte[] contentBytes) throws IOException {
29
String charset;
30
// charset
0 commit comments