Package io.deephaven.modelfarm
Class ModelInputDeserializer<T>
java.lang.Object
io.deephaven.modelfarm.ModelInputDeserializer<T>
- Type Parameters:
T
- input data type
- All Implemented Interfaces:
AutoCloseable
Deserialize model inputs to a file.
-
Constructor Summary
ConstructorDescriptionModelInputDeserializer
(Class<T> c, String filename) Creates a new deserializer. -
Method Summary
-
Constructor Details
-
ModelInputDeserializer
Creates a new deserializer.- Parameters:
c
- data typefilename
- input file name- Throws:
IOException
- problem creating input stream
-
-
Method Details
-
next
Returns the next input.- Returns:
- next input
- Throws:
IOException
- problem reading the next inputClassNotFoundException
- problem casting the object
-
close
Closes the input stream.- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- problem closing the input stream
-