ca.nengo.io
Class FileManager

java.lang.Object
  extended by ca.nengo.io.FileManager

public class FileManager
extends java.lang.Object

Handles saving and loading of Node TODO: a better job (this is a quick one) TODO: is there any metadata to store? TODO: test

Author:
Bryan Tripp

Field Summary
static java.lang.String ENSEMBLE_EXTENSION
           
 
Constructor Summary
FileManager()
           
 
Method Summary
static java.io.File getDefaultLocation()
           
 java.lang.Object load(java.io.File source)
           
 void save(Node node, java.io.File destination)
           
 void save(TimeSeries timeSeries, java.io.File destination)
           
static void setDefaultLocation(java.io.File location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENSEMBLE_EXTENSION

public static final java.lang.String ENSEMBLE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

FileManager

public FileManager()
Method Detail

getDefaultLocation

public static java.io.File getDefaultLocation()

setDefaultLocation

public static void setDefaultLocation(java.io.File location)

save

public void save(Node node,
                 java.io.File destination)
          throws java.io.IOException
Throws:
java.io.IOException

save

public void save(TimeSeries timeSeries,
                 java.io.File destination)
          throws java.io.IOException
Throws:
java.io.IOException

load

public java.lang.Object load(java.io.File source)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException