public class FileManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENSEMBLE_EXTENSION
Extension for serialized NEF networks
|
Constructor and Description |
---|
FileManager() |
public static final java.lang.String ENSEMBLE_EXTENSION
public void save(Node node, java.io.File destination) throws java.io.IOException
node
- Node to serializedestination
- File to save serialized Node injava.io.IOException
- if there's a problem writing to diskpublic void generate(Node node, java.lang.String destination) throws java.io.IOException
java.io.IOException
public void save(TimeSeries timeSeries, java.io.File destination) throws java.io.IOException
timeSeries
- TimeSeries to serializedestination
- File to save serialized TimeSeries injava.io.IOException
- if there's a problem writing to diskpublic java.lang.Object load(java.io.File source) throws java.io.IOException, java.lang.ClassNotFoundException
source
- Serialized file to loadjava.io.IOException
- if there's a problem writing to diskjava.lang.ClassNotFoundException
- if the serialized file contains classes
not known in this context