C# Класс Encog.Persist.Location.StreamPersistence

Create a location based on a Stream.
Наследование: IPersistenceLocation
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CreateStream() публичный Метод

The stream to use.
public CreateStream ( FileMode mode ) : Stream
mode FileMode
Результат Stream

Delete() публичный Метод

Attempt to delete the file. Will fail for this location type.
public Delete ( ) : void
Результат void

Exists() публичный Метод

Does the file exist? This is always true for this location type.
public Exists ( ) : bool
Результат bool

RenameTo() публичный Метод

Rename this file to a different location.
public RenameTo ( IPersistenceLocation toLocation ) : void
toLocation IPersistenceLocation What to rename to.
Результат void

StreamPersistence() публичный Метод

Construct a persistance location based on a stream.
public StreamPersistence ( Stream stream ) : System
stream Stream The stream to use.
Результат System