T
- the type of the object to readpublic interface ObjectDataReader<T>
InputDataSource
and converts the read bytes by using an
InputConverter
.Modifier and Type | Method and Description |
---|---|
GluonObservableObject<T> |
newGluonObservableObject()
Provide an instance of a GluonObservableObject.
|
T |
readObject()
Reads the object and returns it.
|
GluonObservableObject<T> newGluonObservableObject()
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.T readObject() throws java.io.IOException
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.java.io.IOException
- when an exception occurred during the read process