public class FileHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
Log
The Constant Log.
|
Constructor and Description |
---|
FileHandler() |
Modifier and Type | Method and Description |
---|---|
org.jdom2.Document |
createStrategyDoc(SQResultsGroup sr)
Creates the strategy doc.
|
static FileHandler |
getInstance()
Gets the single instance of FileHandler.
|
SQResultsGroup |
loadResultFromFile(java.lang.String fileName)
Load result from file.
|
SQResultsGroup |
loadStrategyDoc(org.jdom2.Document document)
Load strategy doc.
|
void |
saveResultToFile(SQResultsGroup sr,
java.lang.String fileName)
Save result to file.
|
public static FileHandler getInstance()
public void saveResultToFile(SQResultsGroup sr, java.lang.String fileName) throws java.lang.Exception
sr
- the srfileName
- the file namejava.lang.Exception
- the exceptionpublic org.jdom2.Document createStrategyDoc(SQResultsGroup sr) throws java.lang.Exception
sr
- the srjava.lang.Exception
- the exceptionpublic SQResultsGroup loadResultFromFile(java.lang.String fileName) throws java.lang.Exception
fileName
- the file namejava.lang.Exception
- the exceptionpublic SQResultsGroup loadStrategyDoc(org.jdom2.Document document) throws java.lang.Exception
document
- the documentjava.lang.Exception
- the exception