public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.openimaj.io.InternalReadable> |
newInstance(Class<T> cls)
Create a new instance of the given class.
|
static <T extends LanguageModel> |
read(InputStream fis,
T obj)
Read an instance of an object from an input stream.
|
public static <T extends org.openimaj.io.InternalReadable> T newInstance(Class<T> cls)
T - The type of object.cls - The class.public static <T extends LanguageModel> T read(InputStream fis, T obj) throws IOException
T - instance type expectedfis - the input streamobj - the object to instantiateIOException - if there is a problem reading the stream from the fileCopyright © 2017. All rights reserved.