|
||||||||||
| 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 String |
ATTRIBUTE_NAME
The name attribute. |
static String |
TAG_OBJECTS
The objects tag. |
| Constructor Summary | |
|---|---|
PersistReader(PersistenceLocation location)
Construct a persist reader. |
|
| Method Summary | |
|---|---|
boolean |
advance(String name)
Advance to the specified object. |
void |
advanceObjectsCollection()
Advance to the objects collection. |
Set<DirectoryEntry> |
buildDirectory()
Build a directory entry list for the file. |
void |
close()
Close the file. |
ReadXML |
getXMLInput()
|
Map<String,String> |
readHeader()
Obtain the Encog header from the file. |
boolean |
readNextTag(String name)
Read until the next tag of the specified name. |
String |
readNextText(String name)
Read all text until the specified ending tag is found. |
EncogPersistedObject |
readObject(String name)
Read the specific object, search through the objects until its found. |
String |
readValue(String name)
Read the value in a period delimited string. |
void |
saveModified(WriteXML out,
String targetName,
String newName,
String newDesc)
Modify the properties of this object. |
void |
saveTo(WriteXML out,
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 String ATTRIBUTE_NAME
public static final String TAG_OBJECTS
| Constructor Detail |
|---|
public PersistReader(PersistenceLocation location)
location - The location to use.| Method Detail |
|---|
public boolean advance(String name)
name - The name of the object looking for.
public void advanceObjectsCollection()
public Set<DirectoryEntry> buildDirectory()
public void close()
public ReadXML getXMLInput()
public Map<String,String> readHeader()
public boolean readNextTag(String name)
name - The name searched for.
public String readNextText(String name)
name - The tag.
public EncogPersistedObject readObject(String name)
name - The name of the object you are looking for.
public String readValue(String name)
name - The property to read.
public void saveModified(WriteXML out,
String targetName,
String newName,
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,
String skip)
out - The XML writer to save the objects to.skip - The object to skip.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||