|
The Encog Project | ||||||||
| 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.
| Constructor Summary | |
|---|---|
ResourcePersistence(java.lang.String resource)
Construct a location to read from the specified resource. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
createInputStream()
Create an input stream to read from the resource. |
java.io.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. |
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(java.lang.String resource)
resource - The resource to read from.| Method Detail |
|---|
public java.io.InputStream createInputStream()
createInputStream in interface PersistenceLocationpublic java.io.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.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||