com.sodius.mdw.core.util.io
Interface InputSourceWriter

All Superinterfaces:
ContentWriter

public interface InputSourceWriter
extends ContentWriter

Generally used to write a doc template output, accessed using an input source, on disk.

Clients may implement this interface.

Since:
3.2.0
See Also:
EvaluationManager.setContentWriter(ContentWriter)

Method Summary
 void write(File file, String charsetName, InputSource source)
          Writes the specified input source content to the specified location.
 
Methods inherited from interface com.sodius.mdw.core.util.io.ContentWriter
write
 

Method Detail

write

void write(File file,
           String charsetName,
           InputSource source)
           throws IOException
Writes the specified input source content to the specified location.

The specified file may or may not exist at the time this method is invoked. The implementation must create the directory as necessary.

Parameters:
file - the absolute path of the expected output location.
charsetName - the file encoding to be used, null to use the platform default encoding
source - the input source that gives access to the content to write at the specified location.
Throws:
IOException - if the contents could not be written out.