C# Class Zetetic.Ldap.LdifReader

LdifReader is a low-overhead, event-based reader for LDIF formatted files. Use LdifEntryReader for a more traditional, "whole-entry" reader.
Inheritance: IDisposable
Datei anzeigen Open project: skradel/Zetetic.Ldap Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Dispose ( bool isDisposing ) : void

Close the underlying stream if we own it; otherwise, just nullify our reference.

LdifReader ( FileStream fs ) : System

Read from an already-open FileStream, assumed to be ASCII-encoded.

LdifReader ( TextReader sr ) : System

Read from an already-open TextReader, without assuming any particular encoding.

LdifReader ( string path ) : System

Open the ASCII-encoded LDIF file at 'path' for reading.

Read ( ) : bool

Raise any events from reading the next set of instructions from the LDIF. Return false if we have reached the end of the file. Otherwise, true.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

Close the underlying stream if we own it; otherwise, just nullify our reference.
public Dispose ( bool isDisposing ) : void
isDisposing bool
return void

LdifReader() public method

Read from an already-open FileStream, assumed to be ASCII-encoded.
public LdifReader ( FileStream fs ) : System
fs System.IO.FileStream
return System

LdifReader() public method

Read from an already-open TextReader, without assuming any particular encoding.
public LdifReader ( TextReader sr ) : System
sr TextReader
return System

LdifReader() public method

Open the ASCII-encoded LDIF file at 'path' for reading.
public LdifReader ( string path ) : System
path string
return System

Read() public method

Raise any events from reading the next set of instructions from the LDIF. Return false if we have reached the end of the file. Otherwise, true.
public Read ( ) : bool
return bool