C# Class Lucene.Net.Support.FileSupport

Represents the methods to support some operations over files.
显示文件 Open project: apache/lucenenet

Public Methods

Method Description
GetFiles ( System path ) : System.IO.FileInfo[]

Returns an array of abstract pathnames representing the files and directories of the specified path.

Sync ( System fileStream ) : void

Flushes the specified file stream. Ensures that all buffered data is actually written to the file system.

Private Methods

Method Description
CreateTempFile ( string prefix, string suffix, DirectoryInfo directory ) : FileInfo
FlushFileBuffers ( IntPtr hFile ) : bool

Method Details

GetFiles() public static method

Returns an array of abstract pathnames representing the files and directories of the specified path.
public static GetFiles ( System path ) : System.IO.FileInfo[]
path System The abstract pathname to list it childs.
return System.IO.FileInfo[]

Sync() public static method

Flushes the specified file stream. Ensures that all buffered data is actually written to the file system.
public static Sync ( System fileStream ) : void
fileStream System The file stream.
return void