org.problets.lib
Class ExtractFile
java.lang.Object
org.problets.lib.ExtractFile
public class ExtractFile
- extends java.lang.Object
Extracts data from the input file, from the FROM_STRING
up to TO_STRING, as often as they may occur, and saves the
extracted lines in output file
- Author:
- Amruth Kumar
Method Summary |
static void |
main(java.lang.String[] args)
|
static java.util.Vector |
readFromLocalFile(java.lang.String path,
java.lang.String fileName,
java.lang.String commentPrefix)
This method returns a vector containing the contents of a file included with
Jar file. |
static void |
saveVectorInFile(java.lang.String path,
java.lang.String fileName,
java.util.Vector data)
Saves the given vector to the given file, one element per line
// COPIED FROM problet.Library |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtractFile
public ExtractFile()
readFromLocalFile
public static java.util.Vector readFromLocalFile(java.lang.String path,
java.lang.String fileName,
java.lang.String commentPrefix)
- This method returns a vector containing the contents of a file included with
Jar file. It strips all comments and blank lines from the file.
// COPIED FROM problet.Library
saveVectorInFile
public static void saveVectorInFile(java.lang.String path,
java.lang.String fileName,
java.util.Vector data)
- Saves the given vector to the given file, one element per line
// COPIED FROM problet.Library
main
public static void main(java.lang.String[] args)