C# Class Bloom.RobustIO

Provides a more robust version of various IO methods. The original intent of this class is to attempt to mitigate issues where we attempt IO but the file is locked by another application. Our theory is that some anti-virus software locks files while it scans them. There is a similar class in SIL.IO, but that handles more generic calls which would not require additional dependencies.
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
CreateWaveFileReader ( string wavFile ) : NAudio.Wave.WaveFileReader
DocumentFromFile ( string filePath ) : TidyManaged.Document
MetadataFromFile ( string path ) : SIL.Windows.Forms.ClearShare.Metadata
SavePalasoImage ( SIL.Windows.Forms.ImageToolbox.PalasoImage image, string path ) : void

Method Details

CreateWaveFileReader() public static method

public static CreateWaveFileReader ( string wavFile ) : NAudio.Wave.WaveFileReader
wavFile string
return NAudio.Wave.WaveFileReader

DocumentFromFile() public static method

public static DocumentFromFile ( string filePath ) : TidyManaged.Document
filePath string
return TidyManaged.Document

MetadataFromFile() public static method

public static MetadataFromFile ( string path ) : SIL.Windows.Forms.ClearShare.Metadata
path string
return SIL.Windows.Forms.ClearShare.Metadata

SavePalasoImage() public static method

public static SavePalasoImage ( SIL.Windows.Forms.ImageToolbox.PalasoImage image, string path ) : void
image SIL.Windows.Forms.ImageToolbox.PalasoImage
path string
return void