|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.persist.PersistReader
public class PersistReader
Utility class for reading Encog persited object files.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_NAME
The name attribute. |
static java.lang.String |
TAG_OBJECTS
The objects tag. |
| Constructor Summary | |
|---|---|
PersistReader(PersistenceLocation location)
Construct a persist reader. |
|
| Method Summary | |
|---|---|
boolean |
advance(java.lang.String name)
Advance to the specified object. |
void |
advanceObjectsCollection()
Advance to the objects collection. |
java.util.Set<DirectoryEntry> |
buildDirectory()
Build a directory entry list for the file. |
void |
close()
Close the file. |
ReadXML |
getXMLInput()
|
java.util.Map<java.lang.String,java.lang.String> |
readHeader()
Obtain the Encog header from the file. |
boolean |
readNextTag(java.lang.String name)
Read until the next tag of the specified name. |
java.lang.String |
readNextText(java.lang.String name)
Read all text until the specified ending tag is found. |
EncogPersistedObject |
readObject(java.lang.String name)
Read the specific object, search through the objects until its found. |
java.lang.String |
readValue(java.lang.String name)
Read the value in a period delimited string. |
void |
saveModified(WriteXML out,
java.lang.String targetName,
java.lang.String newName,
java.lang.String newDesc)
Modify the properties of this object. |
void |
saveTo(WriteXML out,
java.lang.String skip)
Save all objects to the specified steam, skip the one specified by the skip parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String TAG_OBJECTS
| Constructor Detail |
|---|
public PersistReader(PersistenceLocation location)
location - The location to use.| Method Detail |
|---|
public boolean advance(java.lang.String name)
name - The name of the object looking for.
public void advanceObjectsCollection()
public java.util.Set<DirectoryEntry> buildDirectory()
public void close()
public ReadXML getXMLInput()
public java.util.Map<java.lang.String,java.lang.String> readHeader()
public boolean readNextTag(java.lang.String name)
name - The name searched for.
public java.lang.String readNextText(java.lang.String name)
name - The tag.
public EncogPersistedObject readObject(java.lang.String name)
name - The name of the object you are looking for.
public java.lang.String readValue(java.lang.String name)
name - The property to read.
public void saveModified(WriteXML out,
java.lang.String targetName,
java.lang.String newName,
java.lang.String newDesc)
out - The XML writer.targetName - The name of the object to change.newName - The new name of this object.newDesc - The new description of this object.
public void saveTo(WriteXML out,
java.lang.String skip)
out - The XML writer to save the objects to.skip - The object to skip.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||