public interface ContentWriter
Clients may implement this interface.
void write(File file, String charsetName, String contents) throws IOException
The specified file may or may not exist at the time this method is invoked. The implementation must create the directory as necessary.
file- the absolute path of the expected output location.
charsetName- the file encoding to be used,
nullto use the platform default encoding
contents- the contents to write at the specified location.
IOException- if the contents could not be written out.