public class FileHelper
extends java.lang.Object
The helper generates a new file when the size of the current size is greater then a threshold.
The name of each file is composed of the extension plus the time stamp of the creation.
Note: in case of error creating a file, the object will discard all next writing requests.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
extension
The folder to create file into
|
java.lang.String |
folder
The folder to create file into
|
| Constructor and Description |
|---|
FileHelper(java.lang.String folder,
java.lang.String ext,
java.lang.String header)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the object in order to reject any further
writing request and release the file.
|
void |
put(java.lang.String s)
Write the string in the file.
|
public final java.lang.String folder
public final java.lang.String extension