C# 클래스 Karabow.Steg.Core.FileSystemServices

Helper functions to interact with the file system
파일 보기 프로젝트 열기: Chieze-Franklin/Steg-Studio

공개 메소드들

메소드 설명
AppendBytesToFile ( string filePath, byte bytes ) : void

Appends bytes to a file in a safe way

AppendTextToFile ( string filePath, string fileText ) : void

Appends text to a file in a safe way

ChangeUrlToFilePath ( string urlPath ) : string

changes a url path to a system directory/file path

CreateDirectory ( string directoryPath, bool canOverride ) : void

Creates a directory

CreateFile ( string filePath, bool canOverride, string defaultText ) : void

Creates a file in a safe way

DeserializeFromBinary ( string filePath ) : object

deserializes an object from binary format

DeserializeFromSoap ( string filePath ) : object

deserializes an object from soap format

DeserializeFromXml ( string filePath, Type type, Type subTypes ) : object

deserializes an object from xml format

GetAbsolutePath ( string mayBeRelativePath, string baseDirectory = null ) : string

Returns the absolute path of the specified (relative) path with respect to the base directory

ReadBytesFromFile ( string filePath ) : byte[]

Reads bytes from a file

ReadTextFromFile ( string filePath ) : string

Reads text from a file

SerializeToBinary ( string filePath, object obj ) : void

serializes an object to binary format

SerializeToSoap ( string filePath, object obj ) : void

serializes an object to soap format

SerializeToXml ( string filePath, object obj, Type type, Type subTypes ) : void

serializes an object to XML format

WriteBytesToFile ( string filePath, byte bytes ) : void

Writes bytes to a file in a safe way

WriteTextToFile ( string filePath, string fileText ) : void

Writes text to a file in a safe way

메소드 상세

AppendBytesToFile() 공개 정적인 메소드

Appends bytes to a file in a safe way
public static AppendBytesToFile ( string filePath, byte bytes ) : void
filePath string
bytes byte
리턴 void

AppendTextToFile() 공개 정적인 메소드

Appends text to a file in a safe way
public static AppendTextToFile ( string filePath, string fileText ) : void
filePath string
fileText string
리턴 void

ChangeUrlToFilePath() 공개 정적인 메소드

changes a url path to a system directory/file path
public static ChangeUrlToFilePath ( string urlPath ) : string
urlPath string
리턴 string

CreateDirectory() 공개 정적인 메소드

Creates a directory
public static CreateDirectory ( string directoryPath, bool canOverride ) : void
directoryPath string
canOverride bool
리턴 void

CreateFile() 공개 정적인 메소드

Creates a file in a safe way
public static CreateFile ( string filePath, bool canOverride, string defaultText ) : void
filePath string
canOverride bool
defaultText string
리턴 void

DeserializeFromBinary() 공개 정적인 메소드

deserializes an object from binary format
public static DeserializeFromBinary ( string filePath ) : object
filePath string
리턴 object

DeserializeFromSoap() 공개 정적인 메소드

deserializes an object from soap format
public static DeserializeFromSoap ( string filePath ) : object
filePath string
리턴 object

DeserializeFromXml() 공개 정적인 메소드

deserializes an object from xml format
public static DeserializeFromXml ( string filePath, Type type, Type subTypes ) : object
filePath string
type System.Type
subTypes System.Type
리턴 object

GetAbsolutePath() 공개 정적인 메소드

Returns the absolute path of the specified (relative) path with respect to the base directory
public static GetAbsolutePath ( string mayBeRelativePath, string baseDirectory = null ) : string
mayBeRelativePath string
baseDirectory string
리턴 string

ReadBytesFromFile() 공개 정적인 메소드

Reads bytes from a file
public static ReadBytesFromFile ( string filePath ) : byte[]
filePath string The file to be read
리턴 byte[]

ReadTextFromFile() 공개 정적인 메소드

Reads text from a file
public static ReadTextFromFile ( string filePath ) : string
filePath string The file to be read
리턴 string

SerializeToBinary() 공개 정적인 메소드

serializes an object to binary format
public static SerializeToBinary ( string filePath, object obj ) : void
filePath string
obj object
리턴 void

SerializeToSoap() 공개 정적인 메소드

serializes an object to soap format
public static SerializeToSoap ( string filePath, object obj ) : void
filePath string
obj object
리턴 void

SerializeToXml() 공개 정적인 메소드

serializes an object to XML format
public static SerializeToXml ( string filePath, object obj, Type type, Type subTypes ) : void
filePath string
obj object
type System.Type
subTypes System.Type
리턴 void

WriteBytesToFile() 공개 정적인 메소드

Writes bytes to a file in a safe way
public static WriteBytesToFile ( string filePath, byte bytes ) : void
filePath string
bytes byte
리턴 void

WriteTextToFile() 공개 정적인 메소드

Writes text to a file in a safe way
public static WriteTextToFile ( string filePath, string fileText ) : void
filePath string
fileText string
리턴 void