|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.morphadorner.tools.sampletextfile.SampleTextFile
public abstract class SampleTextFile
Sample a text file.
Copies one text file to another with a selection criterion.
Subclasses must implement the setupSampling, lineSelected, and samplingDone methods.
| Constructor Summary | |
|---|---|
SampleTextFile(java.lang.String inputFileName,
java.lang.String outputFileName,
double sample)
Copy a text file to another while sampling the input lines. |
|
SampleTextFile(java.lang.String inputFileName,
java.lang.String outputFileName,
int sample)
Copy a text file to another while sampling the input lines. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
lineSelected()
Check if line should be selected. |
boolean |
samplingDone()
Determine if sampling done. |
protected abstract void |
setupSampling(java.lang.String inputFileName,
java.lang.String outputFileName,
double sample)
Set up the sampling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleTextFile(java.lang.String inputFileName,
java.lang.String outputFileName,
double sample)
inputFileName - Input file name.outputFileName - Output file name.sample - Sample count, percentage, etc.
public SampleTextFile(java.lang.String inputFileName,
java.lang.String outputFileName,
int sample)
inputFileName - Input file name.outputFileName - Output file name.sample - Sample count, percentage, etc.| Method Detail |
|---|
protected abstract void setupSampling(java.lang.String inputFileName,
java.lang.String outputFileName,
double sample)
inputFileName - Input file name.outputFileName - Output file name.sample - Sample count, percentage, etc.protected abstract boolean lineSelected()
Subclasses must override this method.
public boolean samplingDone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||