public class ReportOutputFolder extends Object
Constructor and Description |
---|
ReportOutputFolder(IMultiReportOutput output)
Creates a new root folder for the given output.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
createFile(String name)
Creates a new file in this folder with the given local name.
|
String |
getLink(ReportOutputFolder base,
String name)
Returns a link relative to a given base to a resource within this folder.
|
ReportOutputFolder |
subFolder(String name)
Creates a sub-folder with the given name.
|
public ReportOutputFolder(IMultiReportOutput output)
output
- output for generated filespublic ReportOutputFolder subFolder(String name)
name
- name of the sub-folderpublic OutputStream createFile(String name) throws IOException
name
- name of the sub-folderIOException
- if the file creation failspublic String getLink(ReportOutputFolder base, String name)
base
- base to create the relative link fromname
- name of the file or folder in this folderIllegalArgumentException
- if this folder and the base do not have the same rootCopyright © 2013. All Rights Reserved.