FileWriter

public final class FileWriter

A writer of JavaScript code into a file.

The class wraps all IOExceptions which occur during its operations in the IllegalStateException.

Functions

Link copied to clipboard
public void append(CodeLines jsOutput)
Appends the given output to the end of the file.
Link copied to clipboard
public static FileWriter createFor(Directory directory, FileDescriptor file)
Creates a new instance which will operate on the file pointed by the file descriptor and located in the specified directory.
public static FileWriter createFor(Directory directory, LibraryFile libraryFile)
Creates a new instance which will operate on the specified library file located in the specified directory.
Link copied to clipboard
public void write(CodeLines jsOutput)
Writes the given output to the file.