Skip to content

IOFileFormat Class

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

Name Description
IOFileFormat(String, String, Type) Initialises a new instance of the IOFileFormat class.

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.
Read(Byte[]) Reads a file from a byte array.
Read(Stream) Reads a file from a stream.
Write(IOFile, String, String, Boolean) Writes a file to a directory with the specified name.
Write(IOFile, String, Boolean) Writes a file to disk.
Write(IOFile) Writes a file to a byte array.
Write(IOFile, Stream) Writes a file to a stream.