摘要: guava源码:Files 看一下它的调用过程 public static <T> T readLines(File file, Charset charset, LineProcessor<T> callback) throws IOException { return asCharSource( 阅读全文
posted @ 2016-08-16 23:36 走在大牛的路上 阅读(356) 评论(0) 推荐(0) 编辑
摘要: @GwtCompatible public final class Strings { private Strings() {} /** *若string为null,则返回空串;否则,返回自身 */ public static String nullToEmpty(@Nullable String string) { return (string == null... 阅读全文
posted @ 2016-08-16 23:31 走在大牛的路上 阅读(352) 评论(0) 推荐(0) 编辑