C# 클래스 Recognos.Core.FileUtilities

Utilities for handling files
파일 보기 프로젝트 열기: Recognos/Recognos.Core

공개 메소드들

메소드 설명
ReadBinaryContent ( this stream ) : byte[]

Reads the content from the stream as binary.

ReadBinaryContentAsync ( this stream ) : Task

Reads the content from the stream as binary.

ReadContent ( this stream ) : string

Reads the content from the stream.

ReadContent ( this stream, Encoding encoding ) : string

Reads the content from the stream.

ReadContentAsync ( this stream ) : Task

Reads the content from the stream.

ReadContentAsync ( this stream, Encoding encoding ) : Task

Reads the content from the stream.

SaveToFile ( this stream, string pathToFile ) : void

Saves a stream to a file.

SaveToFileAsync ( this stream, string pathToFile ) : System.Threading.Tasks.Task

Saves a stream to a file.

SaveToStream ( this stream, Stream outputStream ) : void

Saves a stream to another stream.

SaveToStreamAsync ( this stream, Stream outputStream ) : System.Threading.Tasks.Task

Saves a stream to another stream.

비공개 메소드들

메소드 설명
ComputeSHA1Hash ( string pathToFile ) : string
ComputeSHA1Hash ( this stream ) : string

메소드 상세

ReadBinaryContent() 공개 정적인 메소드

Reads the content from the stream as binary.
public static ReadBinaryContent ( this stream ) : byte[]
stream this The stream.
리턴 byte[]

ReadBinaryContentAsync() 공개 정적인 메소드

Reads the content from the stream as binary.
public static ReadBinaryContentAsync ( this stream ) : Task
stream this The stream.
리턴 Task

ReadContent() 공개 정적인 메소드

Reads the content from the stream.
public static ReadContent ( this stream ) : string
stream this The stream.
리턴 string

ReadContent() 공개 정적인 메소드

Reads the content from the stream.
public static ReadContent ( this stream, Encoding encoding ) : string
stream this The stream.
encoding System.Text.Encoding The encoding.
리턴 string

ReadContentAsync() 공개 정적인 메소드

Reads the content from the stream.
public static ReadContentAsync ( this stream ) : Task
stream this The stream.
리턴 Task

ReadContentAsync() 공개 정적인 메소드

Reads the content from the stream.
public static ReadContentAsync ( this stream, Encoding encoding ) : Task
stream this The stream.
encoding System.Text.Encoding The encoding.
리턴 Task

SaveToFile() 공개 정적인 메소드

Saves a stream to a file.
public static SaveToFile ( this stream, string pathToFile ) : void
stream this The stream.
pathToFile string The path to file.
리턴 void

SaveToFileAsync() 공개 정적인 메소드

Saves a stream to a file.
public static SaveToFileAsync ( this stream, string pathToFile ) : System.Threading.Tasks.Task
stream this The stream.
pathToFile string The path to file.
리턴 System.Threading.Tasks.Task

SaveToStream() 공개 정적인 메소드

Saves a stream to another stream.
public static SaveToStream ( this stream, Stream outputStream ) : void
stream this The input stream.
outputStream System.IO.Stream The output stream.
리턴 void

SaveToStreamAsync() 공개 정적인 메소드

Saves a stream to another stream.
public static SaveToStreamAsync ( this stream, Stream outputStream ) : System.Threading.Tasks.Task
stream this The input stream.
outputStream System.IO.Stream The output stream.
리턴 System.Threading.Tasks.Task