Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
CASUAL.misc.CountLines Class Reference

Public Member Functions

int countFileLines (String Filename)
 
int countResourceLines (String ResourceName)
 
int countISLines (InputStream IS) throws IOException
 
int countFileLines (String Filename)
 
int countResourceLines (String ResourceName)
 
int countISLines (InputStream IS) throws IOException
 

Detailed Description

counts lines

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Member Function Documentation

int CASUAL.misc.CountLines.countFileLines ( String  Filename)

Counts lines in a file

Parameters
Filenamefilename to count
Returns
number of lines in a file
int CASUAL.misc.CountLines.countFileLines ( String  Filename)

Counts lines in a file

Parameters
Filenamefilename to count
Returns
number of lines in a file
int CASUAL.misc.CountLines.countISLines ( InputStream  IS) throws IOException

counts number of lines in an inputstream based on "\n" character usage

Parameters
ISinputstream to be checked
Returns
number of lines counted in the stream
Exceptions
IOException
int CASUAL.misc.CountLines.countISLines ( InputStream  IS) throws IOException

counts number of lines in an inputstream based on "\n" character usage

Parameters
ISinputstream to be checked
Returns
number of lines counted in the stream
Exceptions
IOException
int CASUAL.misc.CountLines.countResourceLines ( String  ResourceName)

Takes a resource and returns number of new lines.

Parameters
ResourceNameresource name to count
Returns
number of lines in a file
int CASUAL.misc.CountLines.countResourceLines ( String  ResourceName)

Takes a resource and returns number of new lines.

Parameters
ResourceNameresource name to count
Returns
number of lines in a file

The documentation for this class was generated from the following file: