|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.persistors.PersistorUtil
public final class PersistorUtil
This class contains some utilities for persisting objects.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_MATRIX_COLS
The columns in the matrix. |
static String |
ATTRIBUTE_MATRIX_ROWS
The rows in the matrix. |
static String |
ROW
A matrix row. |
| Method Summary | |
|---|---|
static void |
beginEncogObject(String objectType,
WriteXML out,
EncogPersistedObject obj,
boolean top)
Write the beginning XML for an Encog object. |
static Persistor |
createPersistor(String className)
Create a persistor object. |
static Matrix |
loadMatrix(ReadXML in)
Load a matrix from the reader. |
static void |
saveMatrix(Matrix matrix,
WriteXML out)
Save the specified matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTRIBUTE_MATRIX_ROWS
public static final String ATTRIBUTE_MATRIX_COLS
public static final String ROW
| Method Detail |
|---|
public static void beginEncogObject(String objectType,
WriteXML out,
EncogPersistedObject obj,
boolean top)
objectType - The object type to persist.out - The object that is being persisted.obj - The XML writer.top - Is this a top-level object, that needs a name and description?public static Persistor createPersistor(String className)
className - The name of the class to create a persistor for.
public static Matrix loadMatrix(ReadXML in)
in - The XML reader.
public static void saveMatrix(Matrix matrix,
WriteXML out)
matrix - The matrix to save.out - The XML writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||