Stream.st
changeset 1404 8da8d767bb18
parent 1403 2417f8fa4d4a
child 1409 7197d2f20482
equal deleted inserted replaced
1403:2417f8fa4d4a 1404:8da8d767bb18
    37 documentation
    37 documentation
    38 "
    38 "
    39     An abstract class defining common behavior for all stream-like objects.
    39     An abstract class defining common behavior for all stream-like objects.
    40     See concrete subclasses for more detail.
    40     See concrete subclasses for more detail.
    41 
    41 
       
    42     The protocol as implemented here is often only provided as a fallBack
       
    43     for very uncommon cases. Much of it is redefined for performance.
       
    44     (In streams which know more about their internal representation ...)
       
    45 
       
    46 
    42     Subclasses should (at least) implement:
    47     Subclasses should (at least) implement:
    43         #next           (if readable)
    48         #next           (if readable)
    44         #nextPut:       (if writable)
    49         #nextPut:       (if writable)
    45         #contents
    50         #contents
    46         #atEnd
    51         #atEnd
    47         #isReadable
    52         #isReadable
    48         #isWritable
    53         #isWritable
       
    54 
       
    55     Peekable & Positionable streams should (at least) implement:
       
    56         #peek
       
    57         #position
       
    58         #position:
       
    59 
    49 
    60 
    50     [Class variables:]
    61     [Class variables:]
    51         StreamErrorSignal       <Signal>        parent of all stream errors
    62         StreamErrorSignal       <Signal>        parent of all stream errors
    52 
    63 
    53         PositionErrorSignal     <Signal>        position attemted on a stream
    64         PositionErrorSignal     <Signal>        position attemted on a stream
  1248 ! !
  1259 ! !
  1249 
  1260 
  1250 !Stream class methodsFor:'documentation'!
  1261 !Stream class methodsFor:'documentation'!
  1251 
  1262 
  1252 version
  1263 version
  1253     ^ '$Header: /cvs/stx/stx/libbasic/Stream.st,v 1.41 1996-05-15 16:06:19 cg Exp $'
  1264     ^ '$Header: /cvs/stx/stx/libbasic/Stream.st,v 1.42 1996-05-15 16:09:14 cg Exp $'
  1254 ! !
  1265 ! !
  1255 Stream initialize!
  1266 Stream initialize!