|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.location.ResourcePersistence
public class ResourcePersistence
A location that allows Encog objects to be read from a resource. This location only supports read operations, so the Encog resource is usually created first as a file and then embedded in the application as a resource. An example of the format for a file stored this way is: org/encog/data/classes.txt
| Constructor Summary | |
|---|---|
ResourcePersistence(String resource)
Construct a location to read from the specified resource. |
|
| Method Summary | |
|---|---|
InputStream |
createInputStream()
Create an input stream to read from the resource. |
OutputStream |
createOutputStream()
Write operations are not supported for resource persistence. |
void |
delete()
Delete operations are not supported for resource persistence. |
boolean |
exists()
Exist is not supported for resource persistence. |
String |
loadString()
Load the resource as a string. |
void |
renameTo(PersistenceLocation toLocation)
Rename is not supported for resource persistence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourcePersistence(String resource)
resource - The resource to read from.| Method Detail |
|---|
public InputStream createInputStream()
createInputStream in interface PersistenceLocationpublic OutputStream createOutputStream()
createOutputStream in interface PersistenceLocationpublic void delete()
delete in interface PersistenceLocationpublic boolean exists()
exists in interface PersistenceLocationpublic void renameTo(PersistenceLocation toLocation)
renameTo in interface PersistenceLocationtoLocation - Not used.public String loadString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||