Package org.apache.felix.inventory
Class Format
java.lang.Object
org.apache.felix.inventory.Format
Java 1.4 compatible enumeration of formats used for inventory printing.
InventoryPrinter services indicate supported formats listing any of
these values in their InventoryPrinter.FORMAT service
properties.
Requestors of inventory printing indicate the desired output format by
specifying the respective constant when calling the
InventoryPrinter.print(java.io.PrintWriter, Format, boolean) method.
Round-tripping is guaranteed between the toString() and
valueOf(String) methods.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
TEXT
Inventory is printed in plain text format. -
HTML
Inventory is printed in HTML format.Technically the output is expected to be an HTML fragment which is intended to be inserted into any block element, such as
<div>, within a HTML<body>. -
JSON
Inventory is printed in JSON format.The output is expected to be a valid JSON object. That is, the output must start with an opening curly brace (
{) and end with a closing curly brace (}).
-
-
Method Details