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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2025. All rights reserved.