C# Class Encog.Persist.Location.StreamPersistence

Create a location based on a Stream.
Inheritance: IPersistenceLocation
ファイルを表示 Open project: encog/encog-silverlight-core

Public Methods

Method Description
CreateStream ( FileMode mode ) : Stream

The stream to use.

Delete ( ) : void

Attempt to delete the file. Will fail for this location type.

Exists ( ) : bool

Does the file exist? This is always true for this location type.

RenameTo ( IPersistenceLocation toLocation ) : void

Rename this file to a different location.

StreamPersistence ( Stream stream ) : System

Construct a persistance location based on a stream.

Method Details

CreateStream() public method

The stream to use.
public CreateStream ( FileMode mode ) : Stream
mode FileMode
return Stream

Delete() public method

Attempt to delete the file. Will fail for this location type.
public Delete ( ) : void
return void

Exists() public method

Does the file exist? This is always true for this location type.
public Exists ( ) : bool
return bool

RenameTo() public method

Rename this file to a different location.
public RenameTo ( IPersistenceLocation toLocation ) : void
toLocation IPersistenceLocation What to rename to.
return void

StreamPersistence() public method

Construct a persistance location based on a stream.
public StreamPersistence ( Stream stream ) : System
stream Stream The stream to use.
return System