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));
}
};
}
LineBufferTest.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:guava
作者:
评论列表
文章目录