C# 클래스 DataServer.FileStore

파일 보기 프로젝트 열기: TNOCS/csTouch

공개 메소드들

메소드 설명
AppendString ( string p, string fileName, string s ) : void
CreateFolder ( string folder ) : void
Empty ( ) : bool
FileStore ( ) : System
FolderExists ( string folder ) : bool
GetBytes ( string folder, string id, bool hash = false ) : Byte[]
GetLocalUrl ( string folder, string Id, bool hash = false ) : string
GetQueue ( ) : void
GetString ( string folder, string id, bool hash = false ) : Task
GetString ( string id ) : string
HasFile ( string id, bool hash = false ) : bool
HasFile ( string folder, string id, bool hash = false ) : bool
Init ( Service s ) : void
LoadBytesFromWeb ( string url ) : Task
LoadImage ( byte imageData, BaseContent c ) : void
LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
LoadPhoto ( byte imageData ) : BitmapImage
QueueBytes ( string id ) : void
ReadAllLines ( string id ) : string[]
SaveBytes ( string file, Byte image, bool hash = false ) : bool
SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
SaveString ( string folder, string id, string value, bool hash = false ) : bool

비공개 메소드들

메소드 설명
Copy ( string fileName, string newName ) : void
Delete ( string bck ) : void
FileExists ( string file ) : bool
GetFiles ( string folder, string p ) : List
GetFolders ( string folder ) : List
GetLocalFolder ( ) : string
Move ( string fileName, string newName ) : void

메소드 상세

AppendString() 공개 메소드

public AppendString ( string p, string fileName, string s ) : void
p string
fileName string
s string
리턴 void

CreateFolder() 공개 정적인 메소드

public static CreateFolder ( string folder ) : void
folder string
리턴 void

Empty() 공개 메소드

public Empty ( ) : bool
리턴 bool

FileStore() 공개 메소드

public FileStore ( ) : System
리턴 System

FolderExists() 공개 정적인 메소드

public static FolderExists ( string folder ) : bool
folder string
리턴 bool

GetBytes() 공개 메소드

public GetBytes ( string folder, string id, bool hash = false ) : Byte[]
folder string
id string
hash bool
리턴 Byte[]

GetLocalUrl() 공개 메소드

public GetLocalUrl ( string folder, string Id, bool hash = false ) : string
folder string
Id string
hash bool
리턴 string

GetQueue() 공개 메소드

public GetQueue ( ) : void
리턴 void

GetString() 공개 메소드

public GetString ( string folder, string id, bool hash = false ) : Task
folder string
id string
hash bool
리턴 Task

GetString() 공개 메소드

public GetString ( string id ) : string
id string
리턴 string

HasFile() 공개 메소드

public HasFile ( string id, bool hash = false ) : bool
id string
hash bool
리턴 bool

HasFile() 공개 메소드

public HasFile ( string folder, string id, bool hash = false ) : bool
folder string
id string
hash bool
리턴 bool

Init() 공개 메소드

public Init ( Service s ) : void
s Service
리턴 void

LoadBytesFromWeb() 공개 정적인 메소드

public static LoadBytesFromWeb ( string url ) : Task
url string
리턴 Task

LoadImage() 공개 정적인 메소드

public static LoadImage ( byte imageData, BaseContent c ) : void
imageData byte
c BaseContent
리턴 void

LoadImage() 공개 정적인 메소드

public static LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
imageData byte
picture System.Windows.Media.Imaging.BitmapSource
리턴 void

LoadPhoto() 공개 정적인 메소드

public static LoadPhoto ( byte imageData ) : BitmapImage
imageData byte
리턴 System.Windows.Media.Imaging.BitmapImage

QueueBytes() 공개 메소드

public QueueBytes ( string id ) : void
id string
리턴 void

ReadAllLines() 공개 메소드

public ReadAllLines ( string id ) : string[]
id string
리턴 string[]

SaveBytes() 공개 메소드

public SaveBytes ( string file, Byte image, bool hash = false ) : bool
file string
image Byte
hash bool
리턴 bool

SaveBytes() 공개 메소드

public SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
folder string
id string
image Byte
hash bool
리턴 bool

SaveString() 공개 정적인 메소드

public static SaveString ( string folder, string id, string value, bool hash = false ) : bool
folder string
id string
value string
hash bool
리턴 bool