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