public class QAOutputGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QAOutputGenerator.Record
class to store output
|
| Constructor and Description |
|---|
QAOutputGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<ArrayList<String>> |
extractFile(Path p) |
static void |
generate(String inputPath,
String outputPath,
Interpreter inter)
generate output with filename and output to jasonfilename
both should with path
|
static void |
generateForDir(String dir,
Interpreter inter)
generate output with filename and output to jasonfilename
both should with path
|
static void |
generateForFile(String file,
Interpreter inter)
generate output with filename and output to jasonfilename
both should with path
|
static ArrayList<String> |
getAllFilenamesInDir(String dir) |
static List<QAOutputGenerator.Record> |
getRecordFromStringSet(String[] strs,
Interpreter inter)
Generate output from an array of strings
|
static void |
main(String[] args) |
static void |
saveRecord(List<QAOutputGenerator.Record> list,
String path)
save the record to a json file
|
public static ArrayList<String> getAllFilenamesInDir(String dir) throws IOException
IOExceptionpublic static List<QAOutputGenerator.Record> getRecordFromStringSet(String[] strs, Interpreter inter)
public static void saveRecord(List<QAOutputGenerator.Record> list, String path) throws FileNotFoundException
FileNotFoundExceptionpublic static void generate(String inputPath, String outputPath, Interpreter inter) throws IOException
IOExceptionpublic static void generateForDir(String dir, Interpreter inter) throws IOException
IOExceptionpublic static void generateForFile(String file, Interpreter inter) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2015. All rights reserved.