public class SimpleFileDataWriter extends Object
init(filename) method creates a file named
filename and opens an output stream to it.
The writeData(data) method writes out data on the opened file.| Constructor and Description |
|---|
SimpleFileDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
init(String filename)
Opens a file for write.
|
static void |
write(String data)
Writes data on file.
|
public static void init(String filename) throws NoSuchFileException
filename - the filename of the file to write data toNoSuchFileException - if something went wrongpublic static void write(String data) throws IOException
data - data to write toIOException - if something went wrongCopyright © 2015 Omnia Consulting. All rights reserved.