public class LineCounter extends Object implements Closeable
Constructor and Description |
---|
LineCounter(InputStream is,
int bufferSize)
构造
|
public LineCounter(InputStream is, int bufferSize)
is
- 输入流bufferSize
- 缓存大小,小于1则使用默认的1024public int getCount()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2025. All rights reserved.