### Question:
FileImpl { public static String guestFileEncoding(File file) { return geestFileEncoding(file, new nsDetector()); }  static String guestFileEncoding(File file); static String guestFileEncoding(File file, int languageHint); static String guestFileEncoding(String path); static String guestFileEncoding(String path, int languageHint);  }### Answer:
@Test public void TestCpdetector() throws Exception { System.out.println(new FileImpl().guestFileEncoding(TestUtil.path + "/text/GBK.txt")); System.out.println(new FileImpl().guestFileEncoding(TestUtil.path + "/text/GBK.txt", 3)); System.out.println(new FileImpl().guestFileEncoding(TestUtil.path + "/text/UTF8.txt")); System.out.println(new FileImpl().guestFileEncoding(TestUtil.path + "/text/UTF8.txt", 3)); }