Share via


MockAdlsInputStream Class

Definition

Mock Adls Input stream for unit test

public sealed class MockAdlsInputStream : Microsoft.Azure.DataLake.Store.AdlsInputStream
type MockAdlsInputStream = class
    inherit AdlsInputStream
Public NotInheritable Class MockAdlsInputStream
Inherits AdlsInputStream
Inheritance
MockAdlsInputStream

Properties

CanRead

Whether stream can read data

(Inherited from AdlsInputStream)
CanSeek

Whether the stream can seek data

(Inherited from AdlsInputStream)
CanWrite

Whether the stream can write data

(Inherited from AdlsInputStream)
Length

Length of the stream, Cannot be set only retrieved

Position

Position of the stream from begining

Methods

Dispose(Boolean)

Releases the unmanaged resources used by the Stream and optionally releases the managed resources

(Inherited from AdlsInputStream)
Flush()

Not supported

(Inherited from AdlsInputStream)
Read(Byte[], Int32, Int32)

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

Read(Int64, Byte[], Int32, Int32)

Reads a sequence of bytes directly from the server. It does not update anything in the stream.

(Inherited from AdlsInputStream)
ReadAsync(Byte[], Int32, Int32, CancellationToken)

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

ReadAsync(Int64, Byte[], Int32, Int32)

Reads a sequence of bytes directly from the server. It does not update anything in the stream.

(Inherited from AdlsInputStream)
Seek(Int64, SeekOrigin)

Updates the position of the underlying stream based on SeekOrigin

SetLength(Int64)

Not supported

(Inherited from AdlsInputStream)
Write(Byte[], Int32, Int32)

Not supported

(Inherited from AdlsInputStream)

Applies to