UnboundedExternalStream.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 11 Oct 2011 16:53:59 +0100
branchjv
changeset 17883 209190914636
parent 17846 24edc476ac18
child 17892 d86c8bd5ece3
permissions -rw-r--r--
svn:keywords property set correctly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
158
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     1
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     2
 COPYRIGHT (c) 1994 by Claus Gittinger
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     3
	      All Rights Reserved
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     4
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    11
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    12
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    13
ExternalStream subclass:#UnboundedExternalStream
1295
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    14
	instanceVariableNames:''
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    15
	classVariableNames:''
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    16
	poolDictionaries:''
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    17
	category:'Streams-External'
158
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    18
!
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    19
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    20
!UnboundedExternalStream class methodsFor:'documentation'!
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    21
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    22
copyright
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    23
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    24
 COPYRIGHT (c) 1994 by Claus Gittinger
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    25
	      All Rights Reserved
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    26
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    27
 This software is furnished under a license and may be used
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    28
 only in accordance with the terms of that license and with the
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    30
 be provided or otherwise made available to, or used by, any
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    31
 other person.  No title to or ownership of the software is
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    32
 hereby transferred.
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    33
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    34
!
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    35
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    36
documentation
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    37
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    38
    This class provides common protocol for all external streams which are
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    39
    unbound in size (i.e. have no end). Examples of these are PipeStream,
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    40
    Sockets, TTYStreams etc.
1295
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    41
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    42
    [author:]
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    43
        Claus Gittinger
158
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    44
"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    45
! !
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    46
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    47
!UnboundedExternalStream methodsFor:'redefind basic'!
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    48
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    49
position
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    50
    "report an error that this stream has no concept of position"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    51
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    52
    self shouldNotImplement
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    53
!
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    54
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    55
position:anInteger
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    56
    "report an error that this stream has no concept of position"
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    57
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    58
    self shouldNotImplement
614
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    59
!
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    60
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    61
size
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    62
    "report an error that this stream has no concept of size"
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    63
acfce2315f75 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 530
diff changeset
    64
    self shouldNotImplement
158
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    65
! !
be947d4e7fb2 Initial revision
claus
parents:
diff changeset
    66
1295
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    67
!UnboundedExternalStream class methodsFor:'documentation'!
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    68
83f594f05c52 documentation
Claus Gittinger <cg@exept.de>
parents: 614
diff changeset
    69
version
17883
209190914636 svn:keywords property set correctly
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17846
diff changeset
    70
    ^ '$Id: UnboundedExternalStream.st 10717 2011-10-11 15:53:59Z vranyj1 $'
17846
24edc476ac18 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17845
diff changeset
    71
! !