Class OsgiConfigUtil

  • public final class OsgiConfigUtil
    extends Object
    Helper class for writing OSGi configurations in JSON format (.cfg.json files).
    • Method Detail

      • write

        public static void write​(OutputStream out,
                                 Dictionary<String,​Object> properties)
                          throws IOException
        Writes the configuration data from the Dictionary to the given OutputStream.

        This method writes at the current location in the stream and does not close the outputstream.

        out - The OutputStream to write the configuration data to.
        properties - The Dictionary to write.
        IOException - If an error occurs writing to the output stream.