com.hrstc.utils
Class FileLineExtractor
java.lang.Object
com.hrstc.utils.FileLineExtractor
public class FileLineExtractor
- extends java.lang.Object
Constructor Summary |
FileLineExtractor(java.lang.String inFileName,
java.lang.String lineCountStr,
java.lang.String outFileName)
Creates a new instance of FileLineExtractor |
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
process()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inFile
private java.io.File inFile
outFile
private java.io.File outFile
lineCount
private int lineCount
FileLineExtractor
public FileLineExtractor(java.lang.String inFileName,
java.lang.String lineCountStr,
java.lang.String outFileName)
- Creates a new instance of FileLineExtractor
- Parameters:
fileName
- lineCountStr
- which line to extract 1 - based
process
public void process()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Parameters:
args
- the command line arguments
ex. queries.bak 2 queries_even.txt
- Throws:
java.io.IOException