This class is a alternative to java.io.FileWriter.
It based on java.util.OutputStreamWriter, adequate to java.io.FileWriter.
But in opposite to that,
The instance of this class will be preserved also if the file is closed,
respectively the instance can be created static, without opened file.
It is because usage in fast realtime systems in C via Java2C-translator.
The implementation in C is written without any dynamically memory.
On open() no exceptions are thrown, a boolean return value is used.
public int open(java.lang.String fileName,
opens a file to write.
fileName - Path to the file. To separate folder, a slash '/' should be used.
But a backslash is also accepted.
An absolute path should be start either with slash
or with a one-char drive specifier, following by ':/'.
append - If the file exists, the content written than is appended.
0 if the file is opened, -1 if the file is not found, -2 on other conditions.
public boolean isOpen()
public void close()
close in interface java.io.Closeable
close in interface java.lang.AutoCloseable
close in class java.io.Writer
public void write(java.lang.String text)
write in class java.io.Writer
public void flush()
flush in interface java.io.Flushable
flush in class java.io.Writer
public void finalize()
finalize in class java.lang.Object
public void write(char cbuf,