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
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Свойство Type Description
m_stream System.IO.FileStream

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode Description
CloseCurrentFile ( ) : void

Method Details

Commit() public méthode

Commits the changes to the disk.
public Commit ( ) : void
Résultat void

CreateFile() public méthode

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

Dispose() public méthode

Releases all the resources used by the SimplifiedFileWriter object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

SimplifiedFileWriter() public méthode

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

Property Details

m_stream public_oe property

public FileStream,System.IO m_stream
Résultat System.IO.FileStream