read Data
Reads data of a specific type from the input stream using the provided PersistentDataType.
The method uses the specified PersistentDataType to convert the raw primitive data from the input stream into its corresponding complex data type.
Return
the complex data type read and converted from the raw primitive data
Parameters
type
the PersistentDataType used to define the primitive and complex data types and perform the conversion from primitive to complex data
Throws
if an I/O error occurs during the read process