public interface InputSourceWriter extends ContentWriter
Clients may implement this interface.
EvaluationManager.setContentWriter(ContentWriter)
Modifier and Type | Method and Description |
---|---|
void |
write(File file,
String charsetName,
InputSource source)
Writes the specified input source content to the specified location.
|
write
void write(File file, String charsetName, InputSource source) 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, null
to use the platform default encodingsource
- the input source that gives access to the content to write at the specified location.IOException
- if the contents could not be written out.