author | Claus Gittinger <cg@exept.de> |
Sat, 06 Sep 1997 19:17:45 +0200 | |
changeset 2899 | 431d8830445b |
parent 2894 | 344aec8ba014 |
child 3031 | 565ba030c404 |
permissions | -rw-r--r-- |
1 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
252 | 3 |
All Rights Reserved |
1 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
PositionableStream subclass:#WriteStream |
|
1295 | 14 |
instanceVariableNames:'' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Streams' |
|
1 | 18 |
! |
19 |
||
1965 | 20 |
!WriteStream class methodsFor:'documentation'! |
1 | 21 |
|
88 | 22 |
copyright |
23 |
" |
|
24 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
252 | 25 |
All Rights Reserved |
88 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
68 | 36 |
documentation |
37 |
" |
|
2883 | 38 |
Streams for writing into. |
39 |
WriteStreams are especially useful, if big strings are to be constructed |
|
40 |
from pieces - create a writeStream, add the pieces (with #nextPut or |
|
41 |
#nextPutAll) and finally fetch the concatenated string via #contents. |
|
42 |
This is much better than constructing the big string by concatenating via |
|
43 |
the comma (,) operator, since less intermediate garbage objects are created. |
|
44 |
||
45 |
This implementation currently DOES change the |
|
261 | 46 |
identity if the streamed-upon collection IF it cannot grow easily. |
47 |
Collections which cannot grow easily are for example: Array, ByteArray and String. |
|
88 | 48 |
Thus it is slightly incompatible to ST-80 since 'aStream contents' does |
49 |
not always return the original collection. This may change. |
|
1295 | 50 |
|
51 |
[author:] |
|
52 |
Claus Gittinger |
|
68 | 53 |
" |
2883 | 54 |
! |
55 |
||
56 |
examples |
|
57 |
" |
|
58 |
[exBegin] |
|
59 |
|s| |
|
60 |
||
61 |
s := WriteStream on:''. |
|
62 |
s nextPutAll:'hello'; |
|
63 |
space; |
|
64 |
nextPutAll:'world'. |
|
65 |
||
66 |
s contents inspect |
|
67 |
[exEnd] |
|
68 |
||
69 |
[exBegin] |
|
70 |
|s| |
|
71 |
||
72 |
s := WriteStream on:''. |
|
73 |
s nextPutAll:'hello'; |
|
74 |
space; |
|
75 |
nextPutAll:'world'. |
|
76 |
||
77 |
Transcript nextPutLine:(s contents) |
|
78 |
[exEnd] |
|
79 |
||
80 |
[exBegin] |
|
81 |
|s| |
|
82 |
||
83 |
s := '' writeStream. |
|
84 |
s nextPutAll:'hello'; |
|
85 |
space; |
|
86 |
nextPutAll:'world'. |
|
87 |
||
88 |
Transcript nextPutLine:(s contents) |
|
89 |
[exEnd] |
|
90 |
" |
|
91 |
||
345 | 92 |
! ! |
93 |
||
1 | 94 |
!WriteStream methodsFor:'accessing'! |
95 |
||
96 |
contents |
|
345 | 97 |
"return the current contents (a collection) of the stream. |
98 |
Currently, this returns the actual collection if possible |
|
99 |
(and reset is implemented to create a new one) in contrast to |
|
100 |
ST80, where contents returns a copy and reset only sets the writePointer. |
|
101 |
The ST/X behavior creates less temporary garbage in the normal case |
|
2410 | 102 |
(where things are written for the contents only) but may be incompatible |
345 | 103 |
with some applications. Time will show, if this is to be changed." |
1 | 104 |
|
260 | 105 |
|lastIndex| |
106 |
||
107 |
lastIndex := position - 1. |
|
108 |
collection size == lastIndex ifFalse:[ |
|
2410 | 109 |
collection isFixedSize ifTrue:[ |
110 |
" |
|
111 |
grow is expensive - return a copy. |
|
112 |
(is this what users of writeStream expect ? |
|
113 |
" |
|
114 |
collection := collection copyFrom:1 to:lastIndex |
|
115 |
] ifFalse:[ |
|
116 |
collection grow:lastIndex |
|
117 |
] |
|
1 | 118 |
]. |
119 |
^ collection |
|
2410 | 120 |
|
121 |
"Modified: 19.2.1997 / 08:57:28 / stefan" |
|
1 | 122 |
! |
123 |
||
329 | 124 |
reset |
345 | 125 |
"reset the stream; write anew. |
2410 | 126 |
See the comment in WriteStream>>contents" |
329 | 127 |
|
128 |
collection := collection species new:(collection size). |
|
129 |
super reset |
|
2410 | 130 |
|
131 |
"Modified: 19.2.1997 / 08:57:00 / stefan" |
|
1 | 132 |
! ! |
133 |
||
611 | 134 |
!WriteStream methodsFor:'positioning'! |
135 |
||
136 |
position:index |
|
137 |
"redefined to allow positioning past the readLimit" |
|
138 |
||
139 |
((index > (collection size + 1)) or:[index < 0]) ifTrue: [^ self positionError]. |
|
140 |
position := index |
|
141 |
! ! |
|
142 |
||
143 |
!WriteStream methodsFor:'private'! |
|
144 |
||
145 |
growCollection |
|
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
146 |
"grow the streamed collection to at least 10 elements" |
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
147 |
|
611 | 148 |
self growCollection:10 |
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
149 |
|
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
150 |
"Modified: 19.8.1997 / 17:53:28 / cg" |
611 | 151 |
! |
152 |
||
153 |
growCollection:minNewSize |
|
154 |
"grow the streamed collection to at least minNewSize" |
|
155 |
||
156 |
|oldSize newSize newColl| |
|
157 |
||
158 |
oldSize := collection size. |
|
159 |
(oldSize == 0) ifTrue:[ |
|
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
160 |
newSize := minNewSize |
611 | 161 |
] ifFalse:[ |
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
162 |
newSize := oldSize * 2. |
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
163 |
(newSize < minNewSize) ifTrue:[newSize := minNewSize]. |
611 | 164 |
]. |
165 |
collection isFixedSize ifTrue:[ |
|
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
166 |
newColl := collection species new:newSize. |
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
167 |
newColl replaceFrom:1 to:oldSize with:collection startingAt:1. |
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
168 |
collection := newColl |
611 | 169 |
] ifFalse:[ |
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
170 |
collection grow:newSize |
611 | 171 |
]. |
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
172 |
|
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
173 |
"Modified: 19.8.1997 / 17:53:11 / cg" |
611 | 174 |
! ! |
175 |
||
176 |
!WriteStream methodsFor:'private accessing'! |
|
177 |
||
178 |
on:aCollection from:start to:last |
|
179 |
"create and return a new stream for writing onto aCollection, where |
|
180 |
writing is limited to the elements in the range start to last." |
|
181 |
||
182 |
super on:aCollection from:start to:last. |
|
183 |
writeLimit := last. |
|
184 |
! ! |
|
185 |
||
186 |
!WriteStream methodsFor:'queries'! |
|
187 |
||
188 |
isWritable |
|
1405 | 189 |
"return true, if writing is supported by the recevier. |
190 |
Always return true here" |
|
191 |
||
611 | 192 |
^ true |
1405 | 193 |
|
194 |
"Modified: 16.5.1996 / 14:44:49 / cg" |
|
611 | 195 |
! ! |
196 |
||
63 | 197 |
!WriteStream methodsFor:'reading'! |
1 | 198 |
|
199 |
next |
|
10 | 200 |
"catch read access to write stream - report an error" |
1 | 201 |
|
10 | 202 |
self shouldNotImplement |
1 | 203 |
! |
204 |
||
205 |
peek |
|
10 | 206 |
"catch read access to write stream - report an error" |
1 | 207 |
|
10 | 208 |
self shouldNotImplement |
63 | 209 |
! ! |
210 |
||
611 | 211 |
!WriteStream methodsFor:'writing'! |
369 | 212 |
|
611 | 213 |
next:count put:anObject |
214 |
"append anObject count times to the receiver. |
|
215 |
Redefined to avoid count grows of the underlying collection - |
|
216 |
instead a single grow on the final size is performed." |
|
217 |
||
218 |
|final| |
|
219 |
||
220 |
(collection isNil or:[writeLimit notNil]) ifTrue:[ |
|
221 |
^ super next:count put:anObject |
|
222 |
]. |
|
369 | 223 |
|
611 | 224 |
final := position + count - 1. |
225 |
(final > collection size) ifTrue:[ |
|
226 |
self growCollection:final |
|
227 |
]. |
|
369 | 228 |
|
611 | 229 |
position to:final do:[:index | |
230 |
collection at:index put:anObject. |
|
231 |
]. |
|
232 |
position := position + count. |
|
233 |
(position > readLimit) ifTrue:[readLimit := position - 1]. |
|
234 |
^ anObject |
|
235 |
! |
|
1 | 236 |
|
237 |
nextPut:anObject |
|
1584 | 238 |
"append the argument, anObject to the stream. |
2863
aec08a0c2c2e
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
239 |
Specially tuned for appending to String, ByteArray and Array streams." |
1 | 240 |
|
63 | 241 |
%{ /* NOCONTEXT */ |
242 |
||
243 |
REGISTER int pos; |
|
244 |
unsigned ch; |
|
245 |
OBJ coll; |
|
2883 | 246 |
OBJ p, wL, rL; |
1584 | 247 |
int __readLimit = -1; |
63 | 248 |
|
1136 | 249 |
coll = __INST(collection); |
250 |
p = __INST(position); |
|
63 | 251 |
|
2894 | 252 |
#ifndef NO_PRIM_STREAM |
293 | 253 |
if (__isNonNilObject(coll) && __isSmallInteger(p)) { |
1584 | 254 |
pos = __intVal(p); |
2883 | 255 |
wL = __INST(writeLimit); |
68 | 256 |
|
2883 | 257 |
if ((wL == nil) |
258 |
|| (__isSmallInteger(wL) && (pos <= __intVal(wL)))) { |
|
1584 | 259 |
OBJ cls; |
63 | 260 |
|
1584 | 261 |
cls = __qClass(coll); |
252 | 262 |
|
1584 | 263 |
rL = __INST(readLimit); |
264 |
if (__isSmallInteger(rL)) { |
|
265 |
__readLimit = __intVal(rL); |
|
266 |
} |
|
293 | 267 |
|
1584 | 268 |
if (cls == @global(String)) { |
269 |
if (__isCharacter(anObject) |
|
2883 | 270 |
&& ((ch = __intVal(__characterVal(anObject))) <= 255) /* ch is unsigned */ |
1584 | 271 |
&& (pos <= __stringSize(coll))) { |
2883 | 272 |
__StringInstPtr(coll)->s_element[pos-1] = ch; |
273 |
__INST(position) = __MKSMALLINT(pos + 1); |
|
274 |
if ((__readLimit >= 0) && (pos >= __readLimit)) { |
|
275 |
__INST(readLimit) = __MKSMALLINT(pos); |
|
1584 | 276 |
} |
2883 | 277 |
RETURN ( anObject ); |
1584 | 278 |
} |
279 |
} else if (cls == @global(ByteArray)) { |
|
280 |
if (__isSmallInteger(anObject) |
|
2864
328b52ecd339
no need for unsigned compare against 0
Claus Gittinger <cg@exept.de>
parents:
2863
diff
changeset
|
281 |
&& ((ch = __intVal(anObject)) <= 255) /* ch is unsigned */ |
2883 | 282 |
&& (pos <= __byteArraySize(coll))) { |
1584 | 283 |
__ByteArrayInstPtr(coll)->ba_element[pos-1] = ch; |
284 |
__INST(position) = __MKSMALLINT(pos + 1); |
|
285 |
if ((__readLimit >= 0) && (pos >= __readLimit)) { |
|
286 |
__INST(readLimit) = __MKSMALLINT(pos); |
|
287 |
} |
|
288 |
RETURN ( anObject ); |
|
289 |
} |
|
290 |
} else if (cls == @global(Array)) { |
|
2883 | 291 |
if (pos <= __arraySize(coll)) { |
1584 | 292 |
__ArrayInstPtr(coll)->a_element[pos-1] = anObject; |
293 |
__STORE(coll, anObject); |
|
294 |
__INST(position) = __MKSMALLINT(pos + 1); |
|
295 |
if ((__readLimit >= 0) && (pos >= __readLimit)) { |
|
296 |
__INST(readLimit) = __MKSMALLINT(pos); |
|
297 |
} |
|
298 |
RETURN ( anObject ); |
|
299 |
} |
|
300 |
} |
|
301 |
} |
|
63 | 302 |
} |
2894 | 303 |
#endif |
260 | 304 |
%}. |
293 | 305 |
(writeLimit isNil |
306 |
or:[position <= writeLimit]) ifTrue:[ |
|
1584 | 307 |
(position > collection size) ifTrue:[self growCollection]. |
308 |
collection at:position put:anObject. |
|
309 |
(position > readLimit) ifTrue:[readLimit := position]. |
|
310 |
position := position + 1. |
|
838 | 311 |
] ifFalse:[ |
1965 | 312 |
WriteErrorSignal raiseErrorString:'write beyond writeLimit' |
293 | 313 |
]. |
1 | 314 |
^anObject |
315 |
! |
|
316 |
||
317 |
nextPutAll:aCollection |
|
63 | 318 |
"append all elements of the argument, aCollection to the stream. |
319 |
Redefined to avoid count grows of the underlying collection - |
|
320 |
instead a single grow on the final size is performed." |
|
1 | 321 |
|
322 |
|nMore final| |
|
323 |
||
77 | 324 |
collection isNil ifTrue:[ |
260 | 325 |
^ super nextPutAll:aCollection |
77 | 326 |
]. |
327 |
||
1 | 328 |
nMore := aCollection size. |
329 |
final := position + nMore - 1. |
|
293 | 330 |
(writeLimit notNil |
331 |
and:[final > writeLimit]) ifTrue:[ |
|
332 |
final := writeLimit. |
|
333 |
nMore := final - position + 1 |
|
334 |
]. |
|
1 | 335 |
(final > collection size) ifTrue:[ |
252 | 336 |
self growCollection:final |
1 | 337 |
]. |
338 |
collection replaceFrom:position |
|
252 | 339 |
to:final |
340 |
with:aCollection |
|
341 |
startingAt:1. |
|
1 | 342 |
|
343 |
position := position + nMore. |
|
344 |
(position > readLimit) ifTrue:[readLimit := position - 1]. |
|
345 |
^ aCollection |
|
1539
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
346 |
! |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
347 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
348 |
nextPutAll:aCollection startingAt:pos1 to:pos2 |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
349 |
"append some elements of the argument, aCollection to the stream. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
350 |
Redefined to avoid count grows of the underlying collection - |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
351 |
instead a single grow on the final size is performed." |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
352 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
353 |
|nMore final| |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
354 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
355 |
collection isNil ifTrue:[ |
1541 | 356 |
^ super nextPutAll:aCollection startingAt:pos1 to:pos2 |
1539
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
357 |
]. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
358 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
359 |
nMore := pos2 - pos1 + 1. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
360 |
final := position + nMore - 1. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
361 |
(writeLimit notNil |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
362 |
and:[final > writeLimit]) ifTrue:[ |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
363 |
final := writeLimit. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
364 |
nMore := final - position + 1 |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
365 |
]. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
366 |
(final > collection size) ifTrue:[ |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
367 |
self growCollection:final |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
368 |
]. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
369 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
370 |
collection replaceFrom:position |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
371 |
to:final |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
372 |
with:aCollection |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
373 |
startingAt:pos1. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
374 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
375 |
position := position + nMore. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
376 |
(position > readLimit) ifTrue:[readLimit := position - 1]. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
377 |
^ aCollection |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
378 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
379 |
" |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
380 |
|s| |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
381 |
|
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
382 |
s := '' writeStream. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
383 |
s nextPutAll:'hello '. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
384 |
s nextPutAll:'1234world012345' startingAt:5 to:9. |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
385 |
s contents |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
386 |
" |
b1ac096a81e3
added #nextPutAll:startingAt:to:
Claus Gittinger <cg@exept.de>
parents:
1405
diff
changeset
|
387 |
|
1541 | 388 |
"Modified: 12.7.1996 / 10:31:36 / cg" |
1 | 389 |
! ! |
390 |
||
1965 | 391 |
!WriteStream class methodsFor:'documentation'! |
701 | 392 |
|
393 |
version |
|
2899 | 394 |
^ '$Header: /cvs/stx/stx/libbasic/WriteStream.st,v 1.38 1997-09-06 17:17:45 cg Exp $' |
701 | 395 |
! ! |