walker.utilities
Class FileUtilities

java.lang.Object
  extended by walker.utilities.FileUtilities

public class FileUtilities
extends java.lang.Object

Created by IntelliJ IDEA. User: andy Date: Apr 10, 2010 Provides utility methods that are file related.


Constructor Summary
FileUtilities()
           
 
Method Summary
static long countLines(java.lang.String fileName)
          Counts the lines of a file.
static long fileSize(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtilities

public FileUtilities()
Method Detail

countLines

public static long countLines(java.lang.String fileName)
                       throws java.io.IOException
Counts the lines of a file.

Parameters:
fileName - the path of the file to be examined.
Returns:
the number of lines.
Throws:
java.io.IOException - if there is no such file.

fileSize

public static long fileSize(java.lang.String fileName)