- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
public static BufferedReader openReader(File file) throws IOException { return openReader(file, "utf-8"); }
public static Properties readProperties(File inFile, String encoding) throws IOException { Properties props = new Properties(); BufferedReader r = openReader(inFile, encoding); try { props.load(r); } finally { closeQuietly(r); } return props; }
public static void read(File file, CAS cas) throws IOException, SAXException { BufferedReader in = IoUtils.openReader(file); try { read(in, cas); } finally { IOUtils.closeQuietly(in); } }