com.hrstc.utils
Class FileLineExtractor

java.lang.Object
  extended by com.hrstc.utils.FileLineExtractor

public class FileLineExtractor
extends java.lang.Object


Field Summary
private  java.io.File inFile
           
private  int lineCount
           
private  java.io.File outFile
           
 
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
 

Field Detail

inFile

private java.io.File inFile

outFile

private java.io.File outFile

lineCount

private int lineCount
Constructor Detail

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
Method Detail

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