Table of Contents

Class ProgressFileStream

Namespace
Innova.Data.File
Assembly
Innova.Data.dll

Represents a stream that provides progress reporting while reading or writing data.

public class ProgressFileStream : Stream, IDisposable
Inheritance
ProgressFileStream
Implements
Extension Methods

Constructors

ProgressFileStream(FileStream, IProgress<ProgressInfo>)

Initializes a new instance of the ProgressFileStream class with the specified file stream and progress reporter.

Properties

CanRead

Gets a value indicating whether the stream supports reading.

CanSeek

Gets a value indicating whether the stream supports seeking.

CanWrite

Gets a value indicating whether the stream supports writing.

EndText

Gets or sets the text to be reported when the progress reaches 100%.

Length

Gets the length in bytes of the stream.

Position

Gets or sets the position within the current stream.

Methods

Dispose(bool)

Releases the unmanaged resources used by the ProgressFileStream and optionally releases the managed resources.

Flush()

Flushes the stream.

Read(byte[], int, int)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Seek(long, SeekOrigin)

Sets the position within the current stream.

SetLength(long)

Sets the length of the current stream.

Write(byte[], int, int)

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.