IFileData

Description

interface Tinman.Terrain.Util.IFileData

Derived from

IPathInfo
IValidatable
IConfigurable
IEquatable<IFileData>

Extended by

FileData abstract

Base interface for classes that provide data for files.

Public / Methods

Open​Stream


[OwnerReturn]
public method OpenStream → ()

returns → IDataStream

The data stream. The IDataStream.CanSeek might return false.

Opens a sequential data stream that returns the file data.

IOException

If an I/O error has occurred.

Zip


public method Zip → (1)

name opt : string = null

The entry name; if null the first entry will be used.

returns → IFileData

The resulting IFileData object.

Treats the file as an archive (the archive format is guessed from the file extension) and extracts the given entry.

Public / Attributes

Is​Path​Info​Valid


public attribute IsPathInfoValid → (get)

value : bool

true if the path info points to a valid file or directory in the local filesystem, false if it is some artificial or virtual value.

Can the IPathInfo.PathInfo value be used to access the file data in the local filesystem?