C# Class Encog.Persist.EncogDirectoryPersistence

Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
EncogDirectoryPersistence ( FileInfo parent ) : System

Construct the object.

GetEncogType ( String name ) : String

Get the type of an Encog object in an EG file, without the need to read the entire file.

LoadFromDirectory ( String name ) : Object

Load a file from the directory that this object refers to.

LoadObject ( FileInfo file ) : Object

Load the specified object.

LoadObject ( Stream mask0 ) : Object

Load an object from an input stream.

SaveObject ( FileInfo filename, Object obj ) : void

Save the specified object.

SaveObject ( Stream os, Object obj ) : void

Save the specified object.

SaveToDirectory ( String name, Object obj ) : void

Save a file to the directory that this object refers to.

Private Methods

Method Description
ReadLine ( Stream mask0 ) : String

Read a line from the input stream.

Method Details

EncogDirectoryPersistence() public method

Construct the object.
public EncogDirectoryPersistence ( FileInfo parent ) : System
parent System.IO.FileInfo The directory to use.
return System

GetEncogType() public method

Get the type of an Encog object in an EG file, without the need to read the entire file.
public GetEncogType ( String name ) : String
name String The filename to read.
return String

LoadFromDirectory() public method

Load a file from the directory that this object refers to.
public LoadFromDirectory ( String name ) : Object
name String The name to load.
return Object

LoadObject() public static method

Load the specified object.
public static LoadObject ( FileInfo file ) : Object
file System.IO.FileInfo The file to load.
return Object

LoadObject() public static method

Load an object from an input stream.
public static LoadObject ( Stream mask0 ) : Object
mask0 Stream The input stream to read from.
return Object

SaveObject() public static method

Save the specified object.
public static SaveObject ( FileInfo filename, Object obj ) : void
filename System.IO.FileInfo The filename to save to.
obj Object The Object to save.
return void

SaveObject() public static method

Save the specified object.
public static SaveObject ( Stream os, Object obj ) : void
os Stream The output stream to write to.
obj Object The object to save.
return void

SaveToDirectory() public method

Save a file to the directory that this object refers to.
public SaveToDirectory ( String name, Object obj ) : void
name String The name to load.
obj Object The object.
return void