public class FileMultiReportOutput extends Object implements IMultiReportOutput
IMultiReportOutput
that writes files directly to a
given directory.Constructor and Description |
---|
FileMultiReportOutput(File basedir)
Creates a new instance for document output in the given base directory.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying resource container.
|
OutputStream |
createFile(String path)
Creates a file at the given local path.
|
public FileMultiReportOutput(File basedir)
basedir
- base directorypublic OutputStream createFile(String path) throws IOException
IMultiReportOutput
OutputStream
has to be closed before the next document is created.createFile
in interface IMultiReportOutput
path
- local path to the new documentIOException
- if the creation failspublic void close() throws IOException
IMultiReportOutput
close
in interface IMultiReportOutput
IOException
- if closing failsCopyright © 2013. All Rights Reserved.