1 | package pro.verron.officestamper.preset; | |
2 | ||
3 | import org.docx4j.openpackaging.packages.PresentationMLPackage; | |
4 | import org.docx4j.openpackaging.packages.SpreadsheetMLPackage; | |
5 | import pro.verron.officestamper.api.OfficeStamper; | |
6 | import pro.verron.officestamper.api.OfficeStamperException; | |
7 | import pro.verron.officestamper.experimental.ExcelStamper; | |
8 | import pro.verron.officestamper.experimental.PowerpointStamper; | |
9 | ||
10 | /** | |
11 | * ExperimentalStampers is a class that provides static methods for obtaining instances of OfficeStamper | |
12 | * implementations for stamping PowerPoint presentations and Excel templates with context and writing | |
13 | * the result to an OutputStream. | |
14 | * | |
15 | * @since 1.6.8 | |
16 | */ | |
17 | public class ExperimentalStampers { | |
18 | ||
19 | private ExperimentalStampers() { | |
20 | throw new OfficeStamperException("ExperimentalStampers cannot be instantiated"); | |
21 | } | |
22 | ||
23 | /** | |
24 | * Returns a new instance of the OfficeStamper implementation | |
25 | * for stamping PowerPoint presentations with context and writing | |
26 | * the result to an OutputStream. | |
27 | * | |
28 | * @return a new OfficeStamper instance for PowerPoint presentations | |
29 | * | |
30 | * @since 1.6.8 | |
31 | */ | |
32 | public static OfficeStamper<PresentationMLPackage> pptxStamper() { | |
33 |
1
1. pptxStamper : replaced return value with null for pro/verron/officestamper/preset/ExperimentalStampers::pptxStamper → KILLED |
return new PowerpointStamper(); |
34 | } | |
35 | ||
36 | /** | |
37 | * Returns a new instance of the OfficeStamper implementation | |
38 | * for stamping Excel templates with context and writing the result to an OutputStream. | |
39 | * | |
40 | * @return a new OfficeStamper instance for Excel templates | |
41 | * | |
42 | * @since 1.6.8 | |
43 | */ | |
44 | public static OfficeStamper<SpreadsheetMLPackage> xlsxStamper() { | |
45 |
1
1. xlsxStamper : replaced return value with null for pro/verron/officestamper/preset/ExperimentalStampers::xlsxStamper → KILLED |
return new ExcelStamper(); |
46 | } | |
47 | } | |
Mutations | ||
33 |
1.1 |
|
45 |
1.1 |