com.ibm.tivoli.maximo.oslc.provider.unittest

Class filetojson

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.unittest.filetojson


  • public class filetojson
    extends java.lang.Object
    Read JSON from the file
    • Constructor Summary

      Constructors 
      Constructor and Description
      filetojson() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.json.java.JSONArray getJA() 
      com.ibm.json.java.JSONObject getJSON() 
      java.lang.String getString()
      Get String
      void set(java.lang.String str)
      Set the str as the address for file
      void setja(java.lang.String str)
      Get JSON
      • Methods inherited from class java.lang.Object

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

      • filetojson

        public filetojson()
    • Method Detail

      • set

        public void set(java.lang.String str)
                 throws java.io.IOException
        Set the str as the address for file
        Parameters:
        str -
        Throws:
        java.io.IOException
      • setja

        public void setja(java.lang.String str)
                   throws java.io.IOException
        Get JSON
        Throws:
        java.io.IOException
      • getJSON

        public com.ibm.json.java.JSONObject getJSON()
      • getJA

        public com.ibm.json.java.JSONArray getJA()
      • getString

        public java.lang.String getString()
        Get String
        Returns: