eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'OSFileHandle':

Home

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

Class: OSFileHandle


Inheritance:

   Object
   |
   +--ExternalAddress
      |
      +--OSHandle
         |
         +--OSFileHandle
            |
            +--UnixFileDescriptorHandle
            |
            +--UnixFileHandle
            |
            +--UnixOperatingSystem::FilePointerHandle

Package:
stx:libbasic
Category:
System-Support
Version:
rev: 1.9 date: 2019/03/12 21:05:00
user: cg
file: OSFileHandle.st directory: libbasic
module: stx stc-classLibrary: libbasic

Class protocol:

initialization
o  initialize
initialize for the OS we are running on

usage example(s):

     self initialize

o  initializeConcreteClass
initialize for the OS we are running on

usage example(s):

     self initializeConcreteClass

o  reinitialize
initialize for the OS we are running on

usage example(s):

     self reinitialize


Instance protocol:

finalization
o  finalize
a filedescriptor was garbage collected - close the underlying file

input/output
o  readBytes: count into: aByteBuffer startingAt: startAddress
read count bytes into a byte-buffer;
Return the number of bytes read (negative on error)

** This method raises an error - it must be redefined in concrete classes **

o  writeBytes: count from: aByteBuffer startingAt: startAddress
write count bytes from a byte-buffer;
Return the number of bytes written (negative on error)

** This method raises an error - it must be redefined in concrete classes **

release
o  close
close the file

o  closeFile
close the underlying file

** This method raises an error - it must be redefined in concrete classes **



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 28 May 2022 20:18:41 GMT