net.returnvoid.io

## Class ExportHelper

- java.lang.Object
- - net.returnvoid.io.ExportHelper

-     public class ExportHelper
      extends java.lang.Object

  A collection of helper methods to provide the export of files.
  Author:
    Diana Lange

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `writeTextFile(java.lang.String absolutePath, java.lang.String filename, java.lang.String... data)` Saves a text based file (e.g. .html, .json, .txt, .svg, ...) at the given absolutePath with the file name filename.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### writeTextFile

          public static java.lang.String writeTextFile(java.lang.String absolutePath,
                                                       java.lang.String filename,
                                                       java.lang.String... data)

      Saves a text based file (e.g. .html, .json, .txt, .svg, ...) at the given absolutePath with the file name filename. data describes the content of the file. Each entry of data will be a separate line in the output file.
      Parameters:
        `absolutePath` - The absolute path where the file should be saved. If the directory and its parents doesn't exists these directories will be created.
        `filename` - The name of the file which will be saved.
        `data` - The data which will be content of the file.
      Returns:
        Null or the text of the exception if any occurred.