Show / Hide Table of Contents

Class StreamUriParser

Base class for an object that allows creating a Stream from a Uri.

Inheritance
object
StreamUriParser
SimpleStreamUriParser
Implements
IStreamUriParser
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public abstract class StreamUriParser : IStreamUriParser

Properties

| Edit this page View Source

PreferFullTransfer

Gets a value that determines if the Stream produced by this object requires to be loaded completely into an in-memory read buffer.

Declaration
public virtual bool PreferFullTransfer { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Get(Uri)

Directly opens a Stream from which to read the content of the uri.

Declaration
public static Stream? Get(Uri uri)
Parameters
Type Name Description
Uri uri

Identifier of the resource to locate.

Returns
Type Description
Stream

A Stream from which to read the content of the uri.

| Edit this page View Source

GetAsync(Uri)

Directly opens a Stream asynchronously from which to read the content of the uri.

Declaration
public static Task<Stream?> GetAsync(Uri uri)
Parameters
Type Name Description
Uri uri

Identifier of the resource to locate.

Returns
Type Description
Task<Stream>

A Stream from which to read the content of the uri.

| Edit this page View Source

GetStream(Uri)

Gets a Stream that links to the requested resource, selecting the most appropriate method to obtain that data stream.

Declaration
public Stream? GetStream(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

GetStreamAsync(Uri)

Gets a Stream that links to the requested resource, selecting the most appropriate method to obtain that data stream.

Declaration
public Task<Stream?> GetStreamAsync(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Task<Stream>

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

Handles(Uri)

Determines if this StreamUriParser can create a Stream from the specified Uri.

Declaration
public abstract bool Handles(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to check.

Returns
Type Description
bool

true if this StreamUriParser can create a Stream from the specified Uri, false otherwise.

| Edit this page View Source

Infer(string)

Gets the appropriate StreamUriParser to handle the specified Uri.

Declaration
public static StreamUriParser? Infer(string uri)
Parameters
Type Name Description
string uri

Uri from which to create a Stream.

Returns
Type Description
StreamUriParser

A StreamUriParser that can create a Stream from the specified Uri, or null if no StreamUriParser is capable of handling the Uri.

| Edit this page View Source

Infer(Uri)

Gets the appropriate StreamUriParser to handle the specified Uri.

Declaration
public static StreamUriParser? Infer(Uri uri)
Parameters
Type Name Description
Uri uri

Uri from which to create a Stream.

Returns
Type Description
StreamUriParser

A StreamUriParser that can create a Stream from the specified Uri, or null if no StreamUriParser is capable of handling the Uri.

| Edit this page View Source

Infer<T>(string)

Gets the appropriate StreamUriParser to handle the specified Uri.

Declaration
public static T? Infer<T>(string uri) where T : class, IStreamUriParser
Parameters
Type Name Description
string uri

Uri from which to create a Stream.

Returns
Type Description
T

A StreamUriParser that can create a Stream from the specified Uri, or null if no StreamUriParser is capable of handling the Uri.

Type Parameters
Name Description
T

Type of specialized StreamUriParser to obtain.

| Edit this page View Source

Infer<T>(Uri)

Gets the appropriate StreamUriParser to handle the specified Uri.

Declaration
public static T? Infer<T>(Uri uri) where T : class, IStreamUriParser
Parameters
Type Name Description
Uri uri

Uri from which to create a Stream.

Returns
Type Description
T

A StreamUriParser that can create a Stream from the specified Uri, or null if no StreamUriParser is capable of handling the Uri.

Type Parameters
Name Description
T

Type of specialized StreamUriParser to obtain.

| Edit this page View Source

Open(Uri)

Opens a Stream from the specified Uri.

Declaration
public abstract Stream? Open(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

OpenFullTransfer(Uri)

Opens the Stream from the specified Uri, and loads it completely into a new intermediate Stream before returning it.

Declaration
public virtual Stream? OpenFullTransfer(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

OpenFullTransferAsync(Uri)

Opens the Stream from the specified Uri, and loads it completely into a new intermediate Stream before returning it.

Declaration
public virtual Task<Stream?> OpenFullTransferAsync(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Task<Stream>

A Stream from which the resource pointed to by the Uri specified can be read.

Implements

IStreamUriParser

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX