C# 클래스 AliaSQL.Core.FileSystem

상속: IFileSystem
파일 보기 프로젝트 열기: ClearMeasure/AliaSQL

공개 메소드들

메소드 설명
FileExists ( string relativePath ) : bool
FileSystem ( ) : System
FileSystem ( IFileStreamFactory streamFactory ) : System
GetAllFilesWithExtensionWithinFolder ( string folder, string fileExtension ) : string[]
ReadFileIntoStreamReader ( string filename ) : StreamReader
ReadIntoFileStream ( string path ) : Stream
ReadTextFile ( string filename ) : string
SaveFile ( string filename, byte fileContent ) : void

비공개 메소드들

메소드 설명
GetEncoding ( string filename ) : Encoding

Determines a text file's encoding by analyzing its byte order mark (BOM) Defaults to ASCII when detection of the text file's endianness fails. Function originally from http://stackoverflow.com/questions/3825390/effective-way-to-find-any-files-encoding

메소드 상세

FileExists() 공개 메소드

public FileExists ( string relativePath ) : bool
relativePath string
리턴 bool

FileSystem() 공개 메소드

public FileSystem ( ) : System
리턴 System

FileSystem() 공개 메소드

public FileSystem ( IFileStreamFactory streamFactory ) : System
streamFactory IFileStreamFactory
리턴 System

GetAllFilesWithExtensionWithinFolder() 공개 메소드

public GetAllFilesWithExtensionWithinFolder ( string folder, string fileExtension ) : string[]
folder string
fileExtension string
리턴 string[]

ReadFileIntoStreamReader() 공개 메소드

public ReadFileIntoStreamReader ( string filename ) : StreamReader
filename string
리턴 System.IO.StreamReader

ReadIntoFileStream() 공개 메소드

public ReadIntoFileStream ( string path ) : Stream
path string
리턴 Stream

ReadTextFile() 공개 메소드

public ReadTextFile ( string filename ) : string
filename string
리턴 string

SaveFile() 공개 메소드

public SaveFile ( string filename, byte fileContent ) : void
filename string
fileContent byte
리턴 void