[FOray-commit] SF.net SVN: foray:[13012] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2023-01-03 18:20:41
|
Revision: 13012
http://sourceforge.net/p/foray/code/13012
Author: victormote
Date: 2023-01-03 18:20:38 +0000 (Tue, 03 Jan 2023)
Log Message:
-----------
Conform to aXSL change: Convert array parameters and return types to List.
Modified Paths:
--------------
trunk/foray/foray-core/src/main/java/org/foray/core/OutputConfig.java
trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java
Modified: trunk/foray/foray-core/src/main/java/org/foray/core/OutputConfig.java
===================================================================
--- trunk/foray/foray-core/src/main/java/org/foray/core/OutputConfig.java 2023-01-03 16:16:04 UTC (rev 13011)
+++ trunk/foray/foray-core/src/main/java/org/foray/core/OutputConfig.java 2023-01-03 18:20:38 UTC (rev 13012)
@@ -36,6 +36,8 @@
import java.net.URL;
import java.nio.charset.Charset;
+import java.util.Arrays;
+import java.util.List;
/**
* Configuration implementation for those configuration items that are
@@ -117,8 +119,10 @@
}
@Override
- public String[] getPdfFilters() {
- return (String[]) getValue("pdf-filters");
+ public List<String> getPdfFilters() {
+ /* TODO: Put this collection in the upstream process as a List from the start. */
+ final String[] array = (String[]) getValue("pdf-filters");
+ return Arrays.asList(array);
}
@Override
Modified: trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java
===================================================================
--- trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java 2023-01-03 16:16:04 UTC (rev 13011)
+++ trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java 2023-01-03 18:20:38 UTC (rev 13012)
@@ -95,6 +95,7 @@
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
/**
@@ -226,9 +227,9 @@
} catch (final PdfException e) {
throw new OutputException(e);
}
- final String[] filters = this.getOutputConfiguration().getPdfFilters();
- for (int i = 0; i < filters.length; i++) {
- final String filter = filters[i];
+ final List<String> filters = this.getOutputConfiguration().getPdfFilters();
+ for (int i = 0; i < filters.size(); i++) {
+ final String filter = filters.get(i);
this.pdfDoc.addDefaultFilter(filter);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|