eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::SwikiFile':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SwikiFile (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::SwikiEntry
      |
      +--Comanche::SwikiFile
         |
         +--Comanche::SwikiImage

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-FileServer
Version:
rev: 1.7 date: 2003/08/29 17:04:31
user: cg
file: SwikiFile.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


SwikiFile

contains the information that is associated with a specific file. During instance creation, the correct subclass of SwikiFile is chosen according to MIME type.

INSTANCE VARIABLES:
fileSize = size of the file in bytes
versions = the SwikiFileVersions that this file belongs to

CLASS VARIABLES:
MimeToClass = a dictionary of MIMETypes to the subclasses of SwikiFile that handle them


Class protocol:

initialize-release
o  handlesMime: aMimeType

o  initialize

instance creation
o  fromArray: arr onDir: dir


Instance protocol:

accessing
o  fileSize

o  fileSizeInWords

o  mimeType

o  rootName

o  version
Files have versions of the form myfile.3.ext, where 3 is the version.
A file without a numbered extension has version of 0

o  versions

o  versions: aSwikiFileVersions

initialization
o  dir: dir mimeType: mimeType
Sub-classes can overwrite this

o  fromArray: arr



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 21 Jul 2018 07:37:14 GMT