IFileOps

Description

interface Tinman.Core.IO.Files.IFileOps

Derived from

IDataStreamFactory

Extended by

IFile

Defines common operations of IFile objects.

The IFile object that is returned by the operation methods must be used by the caller instead of the IFile on which the method has been called.

Public / Methods

Cache


[OwnerReturn] [OwnerThis]
public method Cache → (1)

cache in : FileCache

[not-null]
The cache to use.

returns → IFile

The resulting read-only IFile object.

Returns a IFile that accesses this file through the given in-memory file cache.

Calling IFlushable.Flush on the returned IFile will write all pending changes to disk.

IOException

If the file length cannot be determined.

Offset


[OwnerReturn] [OwnerThis]
public method Offset → (1)

offset in : int64

[>=0]
Absolute offset in this file that will be mapped to offset 0 in the returned file.

returns → IFile

The resulting IFile object.

Returns a IFile that accesses the data in this file using the given byte offset.

Read​Archive


[OwnerReturn]
public method ReadArchive → (1)

entry opt : string = null

Name of the archive entry to read or null to read the first entry.

returns → IDataStream

The data stream that reads the uncompressed archive entry.

Reads the file content as an archive.

IOException

If an I/O error has occurred.

Read​Only


[OwnerReturn] [OwnerThis]
public method ReadOnly → ()

returns → IFile

The resulting IFile object.

Returns a read-only view on this IFile.

IOException

If the file is write-only.