C# Class SWFProcessing.Swiffotron.IO.FileStore

A store class that stores SWF data on the file system.
Inheritance: ISwiffotronStore
Mostra file Open project: WeeWorld/Swiffotron

Public Methods

Method Description
Commit ( string id ) : void

Some stores require commit calls to close output. This implementation will require that the stream is closed, but you should still call Commit in order to comply with the interface contract.

Initialise ( string init ) : void

Called when the store is created

OpenInput ( string id ) : Stream

Open a stored object for input

OpenOutput ( string id ) : Stream

Open a store object to write data to. If the object already exists, it will be overwritten.

Method Details

Commit() public method

Some stores require commit calls to close output. This implementation will require that the stream is closed, but you should still call Commit in order to comply with the interface contract.
public Commit ( string id ) : void
id string The object you're commiting.
return void

Initialise() public method

Called when the store is created
public Initialise ( string init ) : void
init string An initialisation string. Normally this comes from /// an XML config file.
return void

OpenInput() public method

Open a stored object for input
public OpenInput ( string id ) : Stream
id string The string identifier for the object
return System.IO.Stream

OpenOutput() public method

Open a store object to write data to. If the object already exists, it will be overwritten.
public OpenOutput ( string id ) : Stream
id string The identifier of the object.
return System.IO.Stream