C# Class NGit.Util.IO.EolCanonicalizingInputStream

An input stream which canonicalizes EOLs bytes on the fly to '\n'.
An input stream which canonicalizes EOLs bytes on the fly to '\n'. Optionally, a binary check on the first 8000 bytes is performed and in case of binary files, canonicalization is turned off (for the complete file).
Inheritance: Sharpen.InputStream
Mostrar archivo Open project: red-gate/ngit Class Usage Examples

Public Methods

Method Description
Close ( ) : void
EolCanonicalizingInputStream ( InputStream @in, bool detectBinary ) : NGit.Diff

Creates a new InputStream, wrapping the specified stream

Read ( ) : int
Read ( byte bs, int off, int len ) : int

Private Methods

Method Description
FillBuffer ( ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

EolCanonicalizingInputStream() public method

Creates a new InputStream, wrapping the specified stream
public EolCanonicalizingInputStream ( InputStream @in, bool detectBinary ) : NGit.Diff
@in Sharpen.InputStream
detectBinary bool whether binaries should be detected
return NGit.Diff

Read() public method

public Read ( ) : int
return int

Read() public method

public Read ( byte bs, int off, int len ) : int
bs byte
off int
len int
return int