com.ibm.tivoli.maximo.map.helper

Class JSONStream

  • java.lang.Object
    • com.ibm.tivoli.maximo.map.helper.JSONStream


  • public class JSONStream
    extends java.lang.Object
    Filters a stream to be compliant with JSONObject from Json4J api.
    One issue JSON4J has and motivated this class is not supporting NaN type.
    • Constructor Summary

      Constructors 
      Constructor and Description
      JSONStream(java.io.InputStream inputStream) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String clean4Json4J(java.lang.String s)
      Cleans any value not supported by Json4J
      com.ibm.json.java.JSONObject getJsonObject() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONStream

        public JSONStream(java.io.InputStream inputStream)
    • Method Detail

      • getJsonObject

        public com.ibm.json.java.JSONObject getJsonObject()
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • clean4Json4J

        public static java.lang.String clean4Json4J(java.lang.String s)
        Cleans any value not supported by Json4J