C# 클래스 BlueCollar.Examples.Tail

Provides file tail-reading services.
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar

공개 메소드들

메소드 설명
Read ( Stream stream, int count ) : IEnumerable

Reads the given stream, tailing the given number of lines, sing UTF-8 encoding.

Read ( Stream stream, int count, Encoding encoding ) : IEnumerable

Reads the given stream, tailing the given number of lines.

Read ( string path, int count ) : IEnumerable

Reads the given file, tailing the given number of lines, using UTF-8 encoding.

Read ( string path, int count, Encoding encoding ) : IEnumerable

Reads the given file, tailing the given number of lines.

비공개 메소드들

메소드 설명
ReadBuffer ( IList output, StringBuilder outputValue, char buffer, int count ) : string

Reads a buffer of characters in reverse, appending each line to the given output list and writing the un-split output to the given output string.

메소드 상세

Read() 공개 정적인 메소드

Reads the given stream, tailing the given number of lines, sing UTF-8 encoding.
public static Read ( Stream stream, int count ) : IEnumerable
stream Stream The stream to read.
count int The maximum number of lines to tail.
리턴 IEnumerable

Read() 공개 정적인 메소드

Reads the given stream, tailing the given number of lines.
public static Read ( Stream stream, int count, Encoding encoding ) : IEnumerable
stream Stream The stream to read.
count int The maximum number of lines to tail.
encoding System.Text.Encoding The encoding to use.
리턴 IEnumerable

Read() 공개 정적인 메소드

Reads the given file, tailing the given number of lines, using UTF-8 encoding.
public static Read ( string path, int count ) : IEnumerable
path string The path of the file to read.
count int The maximum number of lines to tail.
리턴 IEnumerable

Read() 공개 정적인 메소드

Reads the given file, tailing the given number of lines.
public static Read ( string path, int count, Encoding encoding ) : IEnumerable
path string The path of the file to read.
count int The maximum number of lines to tail.
encoding System.Text.Encoding The encoding to use.
리턴 IEnumerable