Set of functions to define file formats.
Classes
Methods
-
static registerFormat(name, guessopt, desc)
-
Registers a new file format.
Parameters:
Name Type Attributes Description namestring Name of the format. Must be unique.
guessobject <optional>
Hint for automatic selection of format on file open.
Properties
Name Type Description extensionstring Use this format for the files matching this extension.
magicstring Use this format for the files starting with the given magic.
descobject Description of the file format.
Throws:
Throws if the name of the format is not unique or if the format description is invalid.