C# Class Keyczar.Util.NondestructiveStreamReset

Resets a stream when it's disposed or called reset
Inheritance: IDisposable
Mostra file Open project: jbtule/keyczar-dotnet

Public Methods

Method Description
Close ( ) : void

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

NondestructiveStreamReset ( Stream stream ) : System

Initializes a new instance of the NondestructiveStreamReset class.

Reset ( ) : void

Resets this Stream Position.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.

Method Details

Close() public method

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
public Close ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

NondestructiveStreamReset() public method

Initializes a new instance of the NondestructiveStreamReset class.
public NondestructiveStreamReset ( Stream stream ) : System
stream Stream The stream.
return System

Reset() public method

Resets this Stream Position.
public Reset ( ) : void
return void