-
public final class HtmlsKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULT_SUPPORTED_CHARSETSprivate final static PatternDEFAULT_CHARSET_PATTERNprivate final static StringSYSTEM_AVAILABLE_CHARSETSprivate final static PatternSYSTEM_AVAILABLE_CHARSET_PATTERN
-
Method Summary
Modifier and Type Method Description final PatterngetDEFAULT_CHARSET_PATTERN()final StringgetSYSTEM_AVAILABLE_CHARSETS()final PatterngetSYSTEM_AVAILABLE_CHARSET_PATTERN()final static StringBuilderreplaceHTMLCharset(String htmlContent, Pattern charsetPattern, String targetCharset)Replace the charset to the target charset final static BooleanhasHtmlTags(String htmlContent)final static BooleanhasHeadTags(String htmlContent)final static BooleanhasBodyTags(String htmlContent)final static BooleanisBlankBody(String htmlContent)-
-
Method Detail
-
getDEFAULT_CHARSET_PATTERN
final Pattern getDEFAULT_CHARSET_PATTERN()
-
getSYSTEM_AVAILABLE_CHARSETS
final String getSYSTEM_AVAILABLE_CHARSETS()
-
getSYSTEM_AVAILABLE_CHARSET_PATTERN
final Pattern getSYSTEM_AVAILABLE_CHARSET_PATTERN()
-
replaceHTMLCharset
final static StringBuilder replaceHTMLCharset(String htmlContent, Pattern charsetPattern, String targetCharset)
Replace the charset to the target charset
-
hasHtmlTags
final static Boolean hasHtmlTags(String htmlContent)
-
hasHeadTags
final static Boolean hasHeadTags(String htmlContent)
-
hasBodyTags
final static Boolean hasBodyTags(String htmlContent)
-
isBlankBody
final static Boolean isBlankBody(String htmlContent)
-
-
-
-