Interface ObjectDataReader<T>

    • Method Detail

      • newGluonObservableObject

        GluonObservableObject<T> newGluonObservableObject()
        Provide an instance of a GluonObservableObject. This method is called by DataProvider.retrieveObject(ObjectDataReader) to get a GluonObservableObject that will contain the actual object when the retrieve operation has completed successfully. Most implementations will just return an instance of GluonObservableObject itself. Note that it is perfectly valid to return existing instances of GluonObservableObject.
        Returns:
        an instance of a GluonObservableObject
      • readObject

        T readObject()
              throws IOException
        Reads the object and returns it. The actual source of the read and the method that converts the read data into an object instance is completely left to the implementation. This method is called by DataProvider.retrieveObject(ObjectDataReader) to initiate the actual read process. The returned object will be set on the GluonObservableObject that is returned in the newGluonObservableObject() method.
        Returns:
        the read object
        Throws:
        IOException - when an exception occurred during the read process