Package com.illumon.modelfarm
Class ModelInputDeserializer<T>
java.lang.Object
com.illumon.modelfarm.ModelInputDeserializer<T>
- Type Parameters:
T- input data type
- All Implemented Interfaces:
AutoCloseable
Deserialize model inputs to a file.
-
Constructor Summary
ConstructorsConstructorDescriptionModelInputDeserializer(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:
closein interfaceAutoCloseable- Throws:
IOException- problem closing the input stream
-