|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.ReportOutputFolder
public class ReportOutputFolder
Logical representation of a folder in the output structure. This utility ensures valid and unique file names and helps to create relative links.
Constructor Summary | |
---|---|
ReportOutputFolder(IMultiReportOutput output)
Creates a new root folder for the given output. |
Method Summary | |
---|---|
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. |
String |
getLink(String name)
Returns a link relative to this folder to the given resource within this folder. |
ReportOutputFolder |
subFolder(String name)
Creates a sub-folder with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportOutputFolder(IMultiReportOutput output)
output
- output for generated filesMethod Detail |
---|
public ReportOutputFolder subFolder(String name)
name
- name of the sub-folder
public OutputStream createFile(String name) throws IOException
name
- name of the sub-folder
IOException
- if the file creation failspublic String getLink(String name)
name
- name of the file or folder
public String getLink(ReportOutputFolder base, String name)
base
- base to create the relative link fromname
- name of the file or folder in this folder
IllegalArgumentException
- if this folder and the base do not have the same root
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |