Definition
Base class for file formats, providing information about the format and methods for reading and writing files.
public abstract class IOFileFormat
View source
Constructors
Properties
| Name |
Description |
CanRead |
Gets a value indicating whether this format supports reading. |
CanWrite |
Gets a value indicating whether this format supports writing. |
FileExtension |
Gets the file extension for this format, without a leading dot. |
FileType |
Gets the type of IOFile for this format. |
Name |
Gets the display name of this format. |
Methods
| Name |
Description |
CreateConverters() |
Creates the converters for this format. |
GetFilename(String) |
Gets the filename for a file of this format with the specified name. |
Load(String, IReadOnlyList<IOFileFormat>) |
Loads a file from disk. |
Load(String, Stream, IReadOnlyList<IOFileFormat>) |
Loads a file from a stream. Use as an alternative to Load(String, IReadOnlyList<IOFileFormat>) when the file is not on disk, for example web upload. |
LoadAsync(String, IReadOnlyList<IOFileFormat>, CancellationToken) |
Loads a file from disk asynchronously. |
LoadAsync(String, Stream, IReadOnlyList<IOFileFormat>, CancellationToken) |
Loads a file from a stream asynchronously. Use as an alternative to LoadAsync(String, IReadOnlyList<IOFileFormat>, CancellationToken) when the file is not on disk, for example web upload. |
Read(Byte[]) |
Reads a file from a byte array. |
Read(Stream) |
Reads a file from a stream. |
ReadAsync(Stream, CancellationToken) |
Reads a file from a stream asynchronously. |
ReadAsync(IBinaryReader) |
Reads a file from an IBinaryReader. |
WriteAsync(IOFile, IBinaryWriter) |
Writes a file to a IBinaryWriter asynchronously. |