C# Class CmisSync.Lib.Streams.AbortableStream

Abortable stream wraps the given stream and add the possibility to abort the stream read and write by throwing an exception.
Inheritance: NotifyPropertyChangedStream
ファイルを表示 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
Abort ( ) : void

Abort this instance.

AbortableStream ( Stream s ) : System

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.

Read ( byte buffer, int offset, int count ) : int

Read the specified buffer, offset and count.

Write ( byte buffer, int offset, int count ) : void

Write the specified buffer, offset and count.

Method Details

Abort() public method

Abort this instance.
public Abort ( ) : void
return void

AbortableStream() public method

Initializes a new instance of the CmisSync.Lib.Streams.AbortableStream class.
public AbortableStream ( Stream s ) : System
s Stream Stream which should be abortable.
return System

Read() public method

Read the specified buffer, offset and count.
public Read ( byte buffer, int offset, int count ) : int
buffer byte /// Buffer. ///
offset int /// Offset. ///
count int /// Count. ///
return int

Write() public method

Write the specified buffer, offset and count.
public Write ( byte buffer, int offset, int count ) : void
buffer byte /// Buffer. ///
offset int /// Offset. ///
count int /// Count. ///
return void