DownloadTempFileclass
Downloadable temporary file descriptor. We create this object when the program calls inputFile() to ask for a writable file. This lets the caller create and write a temporary file on the server side; when the caller is done with the file, we’ll offer the file for download to the client through the UI.
class
DownloadTempFile
: object
Superclass Tree (in declaration order)
DownloadTempFile
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
isReady
isWebTempFile
mimeType
resName
resPath
tempFileName
timeCreated
Summary of Methods
closeFile
construct
getFilename
Properties
isReady
is the file ready for download?
isWebTempFile
this is a web temp file
mimeType
MIME type
resName
root resource name, and full resource path
resPath
no description available
tempFileName
TemporaryFile object for the local temp file
timeCreated
creation timestamp, as a system tick count value
Methods
closeFile ( )
no description available
construct (res, mimeType)
no description available
getFilename ( )
File spec interface. This allows the DownloadTempFile to be used as though it were a filename string.
When the object is passed to one of the File.open methods, or to saveGame(), setScriptFile(), etc., the system will call our getFilename() method to determine the actual underlying file. We’ll return our temporary file object.
When the underlying file is closed, the system calls our closeFile() method to notify us.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3