public void loadFile() throws IOException { String folder = "/channel/sms"; List<String> files = IOUtils.readLines(getClass().getClassLoader().getResourceAsStream(folder), Charsets.UTF_8); System.out.println(JSONUtil.toJSON(files)); }
getResourceAsStream
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)