|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.location.OutputStreamPersistence
public class OutputStreamPersistence
This class allows Encog persistence to use a location that is based on an OutputStream.
| Constructor Summary | |
|---|---|
OutputStreamPersistence(OutputStream ostream)
Construct the output stream location. |
|
| Method Summary | |
|---|---|
InputStream |
createInputStream()
Can't create an InputStream for this object type, throw an error. |
OutputStream |
createOutputStream()
Provide the output stream to use. |
void |
delete()
Delete operations are not supported for resource persistence. |
boolean |
exists()
|
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 OutputStreamPersistence(OutputStream ostream)
ostream - The OutputStream to base this on.| 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 | |||||||||