|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.persistors.generic.GenericPersistor
public class GenericPersistor
An Encog perisistor that can be used with any object that supports the Encog generic persistence. Simply provide the class to the constructor, and return an instance of this object in the getPersistor call. When loading an object, Encog will attempt to use this class if no other suitable persistor can be found.
| Constructor Summary | |
|---|---|
GenericPersistor(Class<?> clazz)
Construct a generic persistor for the specified class. |
|
| Method Summary | |
|---|---|
EncogPersistedObject |
load(ReadXML in)
Load from the specified node. |
void |
save(EncogPersistedObject obj,
WriteXML out)
Save the specified object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericPersistor(Class<?> clazz)
clazz - The class to construct a persistor for.| Method Detail |
|---|
public EncogPersistedObject load(ReadXML in)
load in interface Persistorin - The node to load from.
public void save(EncogPersistedObject obj,
WriteXML out)
save in interface Persistorobj - The object to save.out - The XML object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||