Package org.nd4j.common.util
Class InputStreamUtil
- java.lang.Object
-
- org.nd4j.common.util.InputStreamUtil
-
public class InputStreamUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description InputStreamUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
countLines(InputStream is)
Count number of lines in a filestatic int
countLines(String filename)
Count number of lines in a file
-
-
-
Method Detail
-
countLines
public static int countLines(InputStream is) throws IOException
Count number of lines in a file- Parameters:
is
-- Returns:
- Throws:
IOException
-
countLines
public static int countLines(String filename) throws IOException
Count number of lines in a file- Parameters:
filename
-- Returns:
- Throws:
IOException
-
-