Util { public static boolean isIgnoreCharset(String charset) { return charset == null || charset.toLowerCase().equals(Constants.IGNORE_CHARSET); }  static String getAbsRootDir(); static String getSessionBaseDir(); static String getSessionDir(String sid); static String getStack(Exception e); static File[] sortFiles(File[] fs); static void checkSession(String sid); static boolean isWindows(); static String toHumanReadableString(String in); static boolean isIgnoreCharset(String charset); static String toReadableBytes(long bytes); static String toReadableMilliseconds(long millis); static String toReadableNumber(long number); static String pluralize(String word, long count);  }
@Test public void testIgnoreCharset() { assertTrue(Util.isIgnoreCharset(null)); assertTrue(Util.isIgnoreCharset(Constants.IGNORE_CHARSET)); assertFalse(Util.isIgnoreCharset("gbk")); assertFalse(Util.isIgnoreCharset("utf-8")); }