Class JsonToFlist

java.lang.Object
com.portal.pcm.JsonToFlist

public class JsonToFlist extends Object
Class implementation to convert from JSON format to Flist.
  • Method Details

    • getInstance

      public static JsonToFlist getInstance()
      Public method to instantiate this class. The constructor has been made private.
      Returns:
      JsonToFlist object.
    • convert

      public void convert(String jsonString) throws IOException, EBufException
      Method to convert input JSON in string format to Flist.
      Parameters:
      jsonString - Input JSON string to be converted.
      Throws:
      IOException - IO Exception.
      EBufException - Generic Ebuf Exception.``
    • convert

      public void convert(JsonNode rootJsonNode) throws EBufException
      Method to convert input JsonNode object to Flist.
      Parameters:
      rootJsonNode - Input JSON Node object to be converted.
      Throws:
      EBufException - Generic Ebuf Exception.``
    • getFList

      public FList getFList()
      Get the flist represented by the JSON.
      Returns:
      FList form of the JSON
    • main

      public static void main(String[] args)
      Main method to test this class independently.
      Parameters:
      args - Filename with input flist.