Show / Hide Table of Contents

Class FileStreamUriParser

Retrieves a Stream from a file path specified by a Uri.

Inheritance
object
StreamUriParser
SimpleStreamUriParser
FileStreamUriParser
Implements
IStreamUriParser
Inherited Members
SimpleStreamUriParser.Handles(Uri)
StreamUriParser.Infer(Uri)
StreamUriParser.Infer(string)
StreamUriParser.Get(Uri)
StreamUriParser.GetAsync(Uri)
StreamUriParser.Infer<T>(Uri)
StreamUriParser.Infer<T>(string)
StreamUriParser.PreferFullTransfer
StreamUriParser.GetStream(Uri)
StreamUriParser.GetStreamAsync(Uri)
StreamUriParser.OpenFullTransfer(Uri)
StreamUriParser.OpenFullTransferAsync(Uri)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.IO
Assembly: MCART.dll
Syntax
public class FileStreamUriParser : SimpleStreamUriParser, IStreamUriParser

Properties

| Edit this page View Source

SchemeList

Enumerates the schemes supported by this StreamUriParser.

Declaration
protected override IEnumerable<string> SchemeList { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
SimpleStreamUriParser.SchemeList

Methods

| Edit this page View Source

Open(Uri)

Opens a Stream from the specified Uri.

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

The Uri to open for reading.

Returns
Type Description
Stream

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

Overrides
StreamUriParser.Open(Uri)
Exceptions
Type Condition
FileNotFoundException

Thrown if the resource pointed to by uri does not exist.

SecurityException

Thrown if sufficient permissions are not available to perform this operation.

IOException

Thrown if there is an input/output issue when opening the resource pointed to by uri.

DirectoryNotFoundException

Thrown if the directory specified in the path of uri does not exist.

PathTooLongException

Thrown if the file path length exceeds the system's allowed limits.

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.ShallowClone<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