|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.six.reports.util.FileUtils
public class FileUtils
Exports a DatabaseResult to a CSV-file.
Method Summary | |
---|---|
static void |
Export(java.lang.String filename,
DatabaseResult resultToExport)
Write the CSV-file |
static java.lang.String |
readFile(java.lang.String name)
Reads the contents of a file. |
static java.lang.String |
readFileFromJar(java.lang.String path)
Reads the contents of a file in the jar. |
static void |
writeFile(java.lang.String contents,
java.lang.String name)
Writes a file to disk. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void Export(java.lang.String filename, DatabaseResult resultToExport)
filename
- The name of the file.resultToExport
- The DatabaseResult to export.public static void writeFile(java.lang.String contents, java.lang.String name)
contents
- The contents of the file.name
- The name of the file to create.public static java.lang.String readFile(java.lang.String name)
name
- the name of the file to read
public static java.lang.String readFileFromJar(java.lang.String path)
path
- the path to read e.g. /be/six/reports/ui/help.html
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |