Class ReportWriter
java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.ReportWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidoutput(BufferedWriter fw, String format) voidperformExport(File path, ResourceSet model, List<? extends Threat> threats) Generate the LaTeX report underpath.voidOptionally supply the Sirius.airdrepresentations file so the System-description chapter can include the Data Flow Diagram, reusing the layout the user arranged.voidvoid
-
Constructor Details
-
ReportWriter
public ReportWriter()
-
-
Method Details
-
setAird
Optionally supply the Sirius.airdrepresentations file so the System-description chapter can include the Data Flow Diagram, reusing the layout the user arranged. Headless: the file is read as plain XML (seeAirdLayout), so this works in the standalone CLI as well as the RCP. Whennullor unreadable, the diagram is simply omitted. -
performExport
public void performExport(File path, ResourceSet model, List<? extends Threat> threats) throws IOException Generate the LaTeX report underpath.- Throws:
IOException- if any part of the export fails. The export aborts on the first failure rather than writing to an already-failed stream, and the exception is propagated so callers can surface it to the user instead of producing a silently partial report.
-
writeDescriptionToFile
- Throws:
IOException
-
writeThreatCatalogToFile
- Throws:
IOException
-
output
- Throws:
IOException
-