FELIX-4025 Cleanup InventoryPrinter API
- Order addAttachements argument like InventoryPrinter.print:
Output channel first, then details on the "request"
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1470022 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/inventory/src/main/java/org/apache/felix/inventory/ZipAttachmentProvider.java b/inventory/src/main/java/org/apache/felix/inventory/ZipAttachmentProvider.java
index 00f0b77..7ff6ff4 100644
--- a/inventory/src/main/java/org/apache/felix/inventory/ZipAttachmentProvider.java
+++ b/inventory/src/main/java/org/apache/felix/inventory/ZipAttachmentProvider.java
@@ -50,12 +50,12 @@
* file to the ZIP file {@code zos}.</li>
* <li>Close the ZipEntry.</li>
* </ol>
- *
- * @param namePrefix Name prefix to use for zip entries. Ends with a slash.
* @param zos The zip output stream.
+ * @param namePrefix Name prefix to use for zip entries. Ends with a slash.
+ *
* @throws IOException If an error occurrs writing the ZIP entry. This may
* also be caused by reading some file system file to be added
* to the ZIP file.
*/
- void addAttachments(final String namePrefix, final ZipOutputStream zos) throws IOException;
+ void addAttachments(final ZipOutputStream zos, final String namePrefix) throws IOException;
}