Back: VersionableObjectProxy-saving and restoring Up: Base classes Forward: VFS.ArchiveFileHandler-ArchiveMemberHandler protocol   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.199 VFS.ArchiveFileHandler

Defined in namespace Smalltalk.VFS
Superclass: VFS.FileHandlerWrapper
Category: Streams-Files
ArchiveFileHandler handles virtual filesystems that have a directory structure of their own. The directories and files in the archive are instances of ArchiveMemberHandler, but the functionality resides entirely in ArchiveFileHandler because the members will still ask the archive to get directory information on them, to extract them to a real file, and so on.

1.199.1 VFS.ArchiveFileHandler: ArchiveMemberHandler protocol  (instance)
1.199.2 VFS.ArchiveFileHandler: directory operations  (instance)
1.199.3 VFS.ArchiveFileHandler: querying  (instance)
1.199.4 VFS.ArchiveFileHandler: TmpFileArchiveMemberHandler protocol  (instance)


1.199.1 VFS.ArchiveFileHandler: ArchiveMemberHandler protocol

fillMember: anArchiveMemberHandler
Extract the information on anArchiveMemberHandler. Answer false if it actually does not exist in the archive; otherwise, answer true after having told anArchiveMemberHandler about them by sending #size:stCtime:stMtime:stAtime:isDirectory: to it.

member: anArchiveMemberHandler do: aBlock
Evaluate aBlock once for each file in the directory represented by anArchiveMemberHandler, passing its name.

member: anArchiveMemberHandler mode: bits
Set the permission bits for the file in anArchiveMemberHandler.

refresh
Extract the directory listing from the archive

removeMember: anArchiveMemberHandler
Remove the member represented by anArchiveMemberHandler.

updateMember: anArchiveMemberHandler
Update the member represented by anArchiveMemberHandler by copying the file into which it was extracted back to the archive.


1.199.2 VFS.ArchiveFileHandler: directory operations

at: aName
Answer a VFSHandler for a file named `aName' residing in the directory represented by the receiver.

do: aBlock
Evaluate aBlock once for each file in the directory represented by the receiver, passing its name.

release
Release the resources used by the receiver that don't survive when reloading a snapshot.


1.199.3 VFS.ArchiveFileHandler: querying

isAccessible
Answer whether a directory with the name contained in the receiver does exist and can be accessed

isDirectory
Answer true. The archive can always be considered as a directory.


1.199.4 VFS.ArchiveFileHandler: TmpFileArchiveMemberHandler protocol

extractMember: anArchiveMemberHandler
Extract the contents of anArchiveMemberHandler into a file that resides on disk, and answer the name of the file.

extractMember: anArchiveMemberHandler into: file
Extract the contents of anArchiveMemberHandler into a file that resides on disk, and answer the name of the file.



Back: VFS.ArchiveFileHandler-querying Up: VFS.ArchiveFileHandler Forward: VFS.ArchiveMemberHandler   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html