OSFileHandle.st
changeset 5413 4e67713bf25a
parent 5409 9b5890348f9c
child 6289 82cf5f13d5d7
--- a/OSFileHandle.st	Fri Jun 23 21:08:42 2000 +0200
+++ b/OSFileHandle.st	Fri Jun 23 21:43:57 2000 +0200
@@ -61,13 +61,6 @@
 
 !OSFileHandle methodsFor:'finalization'!
 
-closeFile
-    "close the underlying file"
-
-    self subclassResponsibility
-
-!
-
 disposed
     "a filedescriptor was garbage collected - close the underlying file"
 
@@ -75,6 +68,24 @@
 
 ! !
 
+!OSFileHandle methodsFor:'input/output'!
+
+readBytes:count into:aByteBuffer startingAt:startAddress
+    "read count bytes into a byte-buffer;
+     Return the number of bytes read (negative on error)"
+
+    ^ self subclassResponsibility
+
+!
+
+writeBytes:count from:aByteBuffer startingAt:startAddress
+    "write count bytes from a byte-buffer;
+     Return the number of bytes written (negative on error)"
+
+    ^ self subclassResponsibility
+
+! !
+
 !OSFileHandle methodsFor:'release'!
 
 close
@@ -84,11 +95,18 @@
     self unregisterForFinalization.
 
 
+!
+
+closeFile
+    "close the underlying file"
+
+    self subclassResponsibility
+
 ! !
 
 !OSFileHandle class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/OSFileHandle.st,v 1.2 2000-06-23 18:54:00 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/OSFileHandle.st,v 1.3 2000-06-23 19:43:57 cg Exp $'
 ! !
 OSFileHandle initialize!