LineBufferTest.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:guava 作者:
private static Reader getChunkedReader(String input, final int chunk) {
  return new FilterReader(new StringReader(input)) {
    @Override
    public int read(char[] cbuf, int off, int len) throws IOException {
      return super.read(cbuf, off, Math.min(chunk, len));
    }
  };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号