C# Class GSF.IO.FileStructure.SimplifiedFileWriter

Assists in the writing of a simplified file. This file can only be appended to and it must be sequentially written.
Inheritance: IDisposable
Mostrar archivo Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Properties

Property Type Description
m_stream System.IO.FileStream

Public Methods

Method Description
Commit ( ) : void

Commits the changes to the disk.

CreateFile ( SubFileName fileName ) : ISupportsBinaryStream

Creates and Opens a new file on the current file system.

Dispose ( ) : void

Releases all the resources used by the SimplifiedFileWriter object.

SimplifiedFileWriter ( string pendingFileName, string completeFileName, int blockSize ) : System

Creates a simplified file writer.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the SimplifiedFileWriter object and optionally releases the managed resources.

Private Methods

Method Description
CloseCurrentFile ( ) : void

Method Details

Commit() public method

Commits the changes to the disk.
public Commit ( ) : void
return void

CreateFile() public method

Creates and Opens a new file on the current file system.
public CreateFile ( SubFileName fileName ) : ISupportsBinaryStream
fileName SubFileName
return ISupportsBinaryStream

Dispose() public method

Releases all the resources used by the SimplifiedFileWriter object.
public Dispose ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the SimplifiedFileWriter object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

SimplifiedFileWriter() public method

Creates a simplified file writer.
public SimplifiedFileWriter ( string pendingFileName, string completeFileName, int blockSize ) : System
pendingFileName string
completeFileName string
blockSize int
return System

Property Details

m_stream public_oe property

public FileStream,System.IO m_stream
return System.IO.FileStream