org.encog.persist
Interface EncogPersistor

All Known Implementing Classes:
PersistART1, PersistBAM, PersistBasicNetwork, PersistBasicPNN, PersistBoltzmann, PersistCPN, PersistHopfield, PersistNEATNetwork, PersistNEATPopulation, PersistRBFNetwork, PersistSOM, PersistSVM, PersistTrainingContinuation

public interface EncogPersistor

This interface defines an Encog Persistor. An Encog persistor will write an Encog object to an EG file.


Method Summary
 int getFileVersion()
           
 String getPersistClassString()
           
 Object read(InputStream is)
          Read the object from an input stream.
 void save(OutputStream os, Object obj)
          Save the object.
 

Method Detail

getPersistClassString

String getPersistClassString()
Returns:
Get the class string for the object.

read

Object read(InputStream is)
Read the object from an input stream.

Parameters:
is - The input stream.
Returns:
The object.

save

void save(OutputStream os,
          Object obj)
Save the object.

Parameters:
os - The output stream to save to.
obj - The object to save.

getFileVersion

int getFileVersion()
Returns:
Get the file version used by this persistor.


Copyright © 2011. All Rights Reserved.