read Data
Reads data of a specific type from the input stream using the provided PersistentDataType.
This method uses the given PersistentDataType to deserialize raw primitive data from the stream, converting it into its corresponding complex representation.
Return
the complex data type resulting from the conversion of the primitive data read from the stream
Parameters
type
the PersistentDataType used to define the conversion between primitive and complex data types, as well as specifying the expected input data type
Throws
if an I/O error occurs during the read process