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