|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.location.InputStreamPersistence
public class InputStreamPersistence
This class allows Encog persistence to use a location that is based on an InputStream.
| Constructor Summary | |
|---|---|
InputStreamPersistence(InputStream istream)
Construct this location. |
|
| Method Summary | |
|---|---|
InputStream |
createInputStream()
Create the input stream. |
OutputStream |
createOutputStream()
Try to create an output stream. |
void |
delete()
Delete operations are not supported for resource persistence. |
boolean |
exists()
Because this is based on a stream, it always exists, so return true. |
void |
renameTo(PersistenceLocation toLocation)
Renames are not allowed on this type of location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamPersistence(InputStream istream)
istream - The input stream to use.| 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||