public class InputStreamUtil extends Object
| Constructor and Description |
|---|
InputStreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countLines(InputStream is)
Count number of lines in a file
|
static int |
countLines(String filename)
Count number of lines in a file
|
public static int countLines(InputStream is) throws IOException
is - IOExceptionpublic static int countLines(String filename) throws IOException
filename - IOExceptionCopyright © 2021. All rights reserved.