C# Class Files.FAR1.FAR1Archive

Inheritance: IDisposable
Datei anzeigen Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Methods

Method Description
ContainsEntry ( string Filename ) : bool

Does this archive contain the specified entry?

Dispose ( ) : void
FAR1Archive ( string Path ) : System
GrabAllEntries ( ) : List

Returns all entries.

GrabEntries ( List Entries ) : List

Returns the given entries as a List of Stream instances. Throws a FAR3Exception if an entry wasn't found.

GrabEntry ( string Filename ) : Stream

Returns an entry in this archive as a Stream instance. Throws a FAR3Exception if entry was not found.

ReadArchive ( bool ThrowException ) : void

Reads all entries in the archive into memory.

Protected Methods

Method Description
Dispose ( bool CleanupNativeAndManagedResources ) : void

Method Details

ContainsEntry() public method

Does this archive contain the specified entry?
public ContainsEntry ( string Filename ) : bool
Filename string
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
return void

FAR1Archive() public method

public FAR1Archive ( string Path ) : System
Path string
return System

GrabAllEntries() public method

Returns all entries.
public GrabAllEntries ( ) : List
return List

GrabEntries() public method

Returns the given entries as a List of Stream instances. Throws a FAR3Exception if an entry wasn't found.
public GrabEntries ( List Entries ) : List
Entries List A List of UniqueFileID of entries to grab.
return List

GrabEntry() public method

Returns an entry in this archive as a Stream instance. Throws a FAR3Exception if entry was not found.
public GrabEntry ( string Filename ) : Stream
Filename string
return Stream

ReadArchive() public method

Reads all entries in the archive into memory.
public ReadArchive ( bool ThrowException ) : void
ThrowException bool Wether or not to throw an exception if the archive was not a FAR. If false, function will return.
return void