C# 클래스 Beagrep.Daemon.Filter

파일 보기 프로젝트 열기: baohaojun/beagrep 1 사용 예제들

공개 메소드들

메소드 설명
AddLink ( string link ) : void
AddProperty ( System.Property prop ) : void
AppendChars ( char buffer, int index, int count ) : bool

Does not check for structural breaks

AppendLine ( string line ) : bool

Add a line followed by a newline.

AppendStructuralBreak ( ) : bool

Creates a new paragraph. Mainly useful for storing cached contents.

AppendText ( string str ) : bool

Append text to the textpool. If IsHot is true, then also add to the hottext pool. Handles null str.

AppendText ( string str, string strHot ) : bool
AppendWhiteSpace ( ) : bool

Adds whitespace to the textpool.

AppendWord ( string word ) : bool

Add a word followed by a whitespace. word may not be whitespace or newline.

AttachSnippetWriter ( TextWriter writer ) : void
CleanGeneratedIndexables ( ) : void
Cleanup ( ) : void
Filter ( ) : System
FreezeDown ( ) : void
FreezeUp ( ) : void
GenerateNextIndexable ( Indexable &indexable ) : bool

Good filters should replace this by an IEnumerable that does not require generating all the indexables beforehand

GetHotTextReader ( ) : TextReader
GetTextReader ( ) : TextReader
HotDown ( ) : void
HotUp ( ) : void
Open ( FileSystemInfo info ) : bool
Open ( Stream stream ) : bool
Open ( Stream stream, bool store_tempfile ) : bool

This will throw an exception; callers should catch it and appropriately display the error message showing the filename etc.

Open ( TextReader reader ) : bool
Open ( string path ) : bool

보호된 메소드들

메소드 설명
AddIndexable ( Indexable indexable ) : void
AddIndexables ( ICollection indexables ) : void
AddSupportedFlavor ( Beagrep.Daemon.FilterFlavor flavor ) : void
DoClose ( ) : void
DoOpen ( DirectoryInfo info ) : void
DoOpen ( FileInfo info ) : void
DoOpen ( FileSystemInfo info ) : void
DoPull ( ) : void
DoPullProperties ( ) : void
DoPullSetup ( ) : void
Error ( ) : void
Finished ( ) : void
RegisterSupportedTypes ( ) : void
SetFileType ( string file_type ) : void

Filter may set the filetype to document, source, music etc. Use lower case for file_type

SetVersion ( int v ) : void

비공개 메소드들

메소드 설명
AppendWords ( string words, bool is_line ) : bool
Close ( ) : void
Pull ( ) : bool
PullFromArray ( ArrayList array, StringBuilder sb, bool is_hot ) : bool
PullHotText ( StringBuilder sb, int chars_to_pull ) : bool
PullText ( StringBuilder sb, int chars_to_pull ) : bool
PullTextCarefully ( ArrayList array, StringBuilder sb, int chars_to_pull, bool is_hot ) : bool
ReallyAddText ( char buffer, int index, int count ) : void
ReallyAddText ( string str ) : void
UpdateCharsAdded ( int append_chars_added ) : bool

메소드 상세

AddIndexable() 보호된 메소드

protected AddIndexable ( Indexable indexable ) : void
indexable Indexable
리턴 void

AddIndexables() 보호된 메소드

protected AddIndexables ( ICollection indexables ) : void
indexables ICollection
리턴 void

AddLink() 공개 메소드

public AddLink ( string link ) : void
link string
리턴 void

AddProperty() 공개 메소드

public AddProperty ( System.Property prop ) : void
prop System.Property
리턴 void

AddSupportedFlavor() 보호된 메소드

protected AddSupportedFlavor ( Beagrep.Daemon.FilterFlavor flavor ) : void
flavor Beagrep.Daemon.FilterFlavor
리턴 void

AppendChars() 공개 메소드

Does not check for structural breaks
public AppendChars ( char buffer, int index, int count ) : bool
buffer char /// A ///
index int /// A ///
count int /// A ///
리턴 bool

AppendLine() 공개 메소드

Add a line followed by a newline.
public AppendLine ( string line ) : bool
line string /// A ///
리턴 bool

AppendStructuralBreak() 공개 메소드

Creates a new paragraph. Mainly useful for storing cached contents.
public AppendStructuralBreak ( ) : bool
리턴 bool

AppendText() 공개 메소드

Append text to the textpool. If IsHot is true, then also add to the hottext pool. Handles null str.
public AppendText ( string str ) : bool
str string
리턴 bool

AppendText() 공개 메소드

public AppendText ( string str, string strHot ) : bool
str string
strHot string
리턴 bool

AppendWhiteSpace() 공개 메소드

Adds whitespace to the textpool.
public AppendWhiteSpace ( ) : bool
리턴 bool

AppendWord() 공개 메소드

Add a word followed by a whitespace. word may not be whitespace or newline.
public AppendWord ( string word ) : bool
word string /// A ///
리턴 bool

AttachSnippetWriter() 공개 메소드

public AttachSnippetWriter ( TextWriter writer ) : void
writer System.IO.TextWriter
리턴 void

CleanGeneratedIndexables() 공개 메소드

public CleanGeneratedIndexables ( ) : void
리턴 void

Cleanup() 공개 메소드

public Cleanup ( ) : void
리턴 void

DoClose() 보호된 메소드

protected DoClose ( ) : void
리턴 void

DoOpen() 보호된 메소드

protected DoOpen ( DirectoryInfo info ) : void
info System.IO.DirectoryInfo
리턴 void

DoOpen() 보호된 메소드

protected DoOpen ( FileInfo info ) : void
info System.IO.FileInfo
리턴 void

DoOpen() 보호된 메소드

protected DoOpen ( FileSystemInfo info ) : void
info System.IO.FileSystemInfo
리턴 void

DoPull() 보호된 메소드

protected DoPull ( ) : void
리턴 void

DoPullProperties() 보호된 메소드

protected DoPullProperties ( ) : void
리턴 void

DoPullSetup() 보호된 메소드

protected DoPullSetup ( ) : void
리턴 void

Error() 보호된 메소드

protected Error ( ) : void
리턴 void

Filter() 공개 메소드

public Filter ( ) : System
리턴 System

Finished() 보호된 메소드

protected Finished ( ) : void
리턴 void

FreezeDown() 공개 메소드

public FreezeDown ( ) : void
리턴 void

FreezeUp() 공개 메소드

public FreezeUp ( ) : void
리턴 void

GenerateNextIndexable() 공개 메소드

Good filters should replace this by an IEnumerable that does not require generating all the indexables beforehand
public GenerateNextIndexable ( Indexable &indexable ) : bool
indexable Indexable /// A ///
리턴 bool

GetHotTextReader() 공개 메소드

public GetHotTextReader ( ) : TextReader
리턴 TextReader

GetTextReader() 공개 메소드

public GetTextReader ( ) : TextReader
리턴 TextReader

HotDown() 공개 메소드

public HotDown ( ) : void
리턴 void

HotUp() 공개 메소드

public HotUp ( ) : void
리턴 void

Open() 공개 메소드

public Open ( FileSystemInfo info ) : bool
info System.IO.FileSystemInfo
리턴 bool

Open() 공개 메소드

public Open ( Stream stream ) : bool
stream Stream
리턴 bool

Open() 공개 메소드

This will throw an exception; callers should catch it and appropriately display the error message showing the filename etc.
public Open ( Stream stream, bool store_tempfile ) : bool
stream Stream /// A ///
store_tempfile bool /// A ///
리턴 bool

Open() 공개 메소드

public Open ( TextReader reader ) : bool
reader TextReader
리턴 bool

Open() 공개 메소드

public Open ( string path ) : bool
path string
리턴 bool

RegisterSupportedTypes() 보호된 메소드

protected RegisterSupportedTypes ( ) : void
리턴 void

SetFileType() 보호된 메소드

Filter may set the filetype to document, source, music etc. Use lower case for file_type
protected SetFileType ( string file_type ) : void
file_type string /// A ///
리턴 void

SetVersion() 보호된 메소드

protected SetVersion ( int v ) : void
v int
리턴 void