org.htmlparser.tests.codeMetrics
Class LineCounter

java.lang.Object
  extended byorg.htmlparser.tests.codeMetrics.LineCounter

public class LineCounter
extends java.lang.Object


Constructor Summary
LineCounter()
           
 
Method Summary
 int count(java.io.File file)
           
 int countLinesIn(java.io.File file)
          Counts code excluding comments and blank lines in the given file
static void main(java.lang.String[] args)
           
 int recurseDirectory(java.io.File file, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineCounter

public LineCounter()
Method Detail

count

public int count(java.io.File file)

countLinesIn

public int countLinesIn(java.io.File file)
Counts code excluding comments and blank lines in the given file

Parameters:
file -
Returns:
int

recurseDirectory

public int recurseDirectory(java.io.File file,
                            int count)

main

public static void main(java.lang.String[] args)