Class FormatProviderBase<T>
Represents base binary format provider.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Common.FormatProviders
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public abstract class FormatProviderBase<T> : IFormatProvider<T>
Type Parameters
T
|
Constructors
FormatProviderBase()
Declaration
protected FormatProviderBase()
Properties
CanExport
Gets a value indicating whether format provider can export.
Declaration
public abstract bool CanExport { get; }
Property Value
System.Boolean
The value indicating whether can export. |
Implements
CanImport
Gets a value indicating whether format provider can import.
Declaration
public abstract bool CanImport { get; }
Property Value
System.Boolean
The value indicating whether can import. |
Implements
SupportedExtensions
Gets the supported extensions.
Declaration
public abstract IEnumerable<string> SupportedExtensions { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
The supported extensions. |
Implements
Methods
Export(T, Stream)
Exports the specified document to the output stream.
Declaration
[Obsolete("This method is obsolete. Please use Export(T document, Stream output, TimeSpan? timeout) instead.")]
public void Export(T document, Stream output)
Parameters
T
document
The document. |
System.IO.Stream
output
The output stream. |
Implements
Export(T, Stream, Nullable<TimeSpan>)
Exports the specified document to the output stream.
Declaration
public void Export(T document, Stream output, TimeSpan? timeout)
Parameters
T
document
The document. |
System.IO.Stream
output
The output stream. |
System.Nullable<System.TimeSpan>
timeout
The timeout after which the operation will be cancelled. |
Implements
ExportOverride(T, Stream)
Exports the specified document.
Declaration
[Obsolete("This method is obsolete. Please use ExportOverride(T document, Stream output, CancellationToken cancellationToken) instead.")]
protected virtual void ExportOverride(T document, Stream output)
Parameters
T
document
The document. |
System.IO.Stream
output
The output. |
ExportOverride(T, Stream, CancellationToken)
Exports the specified document.
Declaration
protected virtual void ExportOverride(T document, Stream output, CancellationToken cancellationToken)
Parameters
T
document
The document. |
System.IO.Stream
output
The output. |
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Import(Stream)
Imports the specified input stream.
Declaration
[Obsolete("This method is obsolete. Please use Import(Stream input, TimeSpan? timeout) instead.")]
public T Import(Stream input)
Parameters
System.IO.Stream
input
The input stream. |
Returns
T
The imported document. |
Implements
Import(Stream, Nullable<TimeSpan>)
Imports the specified input stream.
Declaration
public T Import(Stream input, TimeSpan? timeout)
Parameters
System.IO.Stream
input
The input stream. |
System.Nullable<System.TimeSpan>
timeout
The timeout after which the operation will be cancelled. |
Returns
T
The imported document. |
Implements
ImportOverride(Stream)
Imports the specified input.
Declaration
[Obsolete("This method is obsolete. Please use ImportOverride(Stream input, CancellationToken cancellationToken) instead.")]
protected virtual T ImportOverride(Stream input)
Parameters
System.IO.Stream
input
The input. |
Returns
T
The imported document. |
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected virtual T ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
System.IO.Stream
input
The input. |
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Returns
T
The imported document. |