author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 09 Apr 2011 18:19:04 +0100 | |
branch | jv |
changeset 17834 | 04ff72c5039a |
parent 17814 | b75a7f0c346b |
child 17841 | 7abcc4aef871 |
permissions | -rw-r--r-- |
8148 | 1 |
" |
2 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
8047 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
8447
9bdea3431846
EncodedStream inherts from PeekableStream
Stefan Vogel <sv@exept.de>
parents:
8444
diff
changeset
|
14 |
PeekableStream subclass:#EncodedStream |
8047 | 15 |
instanceVariableNames:'encoder stream' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Collections-Text-Encodings' |
|
19 |
! |
|
20 |
||
8148 | 21 |
!EncodedStream class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! ! |
|
8047 | 36 |
|
37 |
!EncodedStream class methodsFor:'instance creation'! |
|
38 |
||
39 |
stream:streamArg encoder:encoder |
|
40 |
^ (self basicNew) stream:streamArg; encoder:encoder |
|
41 |
! ! |
|
42 |
||
17742 | 43 |
!EncodedStream class methodsFor:'utilities'! |
44 |
||
45 |
decodedStreamFor:aStream |
|
46 |
|encoding decoder decodedStream| |
|
47 |
||
48 |
"/ setup for no-encoding; allows for a later switch to a real encoder, |
|
49 |
"/ whenever an encoding pragma is encountered later. |
|
50 |
decoder := CharacterEncoder nullEncoderInstance. |
|
51 |
||
52 |
aStream isPositionable ifTrue:[ |
|
53 |
encoding := CharacterEncoder guessEncodingOfStream:aStream. |
|
54 |
(encoding notNil |
|
55 |
and:[ encoding ~= #'iso8859-1' |
|
56 |
and:[ encoding ~= #'ascii' ]]) ifTrue:[ |
|
57 |
decoder := CharacterEncoder encoderFor:encoding. |
|
58 |
]. |
|
59 |
]. |
|
60 |
decodedStream := EncodedStream stream:aStream encoder:decoder. |
|
61 |
decodedStream skipEncodingChunk. |
|
62 |
^ decodedStream |
|
63 |
! ! |
|
64 |
||
8047 | 65 |
!EncodedStream methodsFor:'accessing'! |
66 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
67 |
contentsSpecies |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
68 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
69 |
"Not sure if this is ok" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
70 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
71 |
^ stream contentsSpecies. |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
72 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
73 |
"/ ^UnicodeString |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
74 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
75 |
"Created: / 14-06-2005 / 17:11:01 / janfrog" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
76 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
77 |
|
8047 | 78 |
encoder |
79 |
^ encoder |
|
80 |
! |
|
81 |
||
82 |
encoder:something |
|
83 |
encoder := something. |
|
84 |
! |
|
85 |
||
17747 | 86 |
pathName |
87 |
"if our base stream hat a pathname, delegate..." |
|
88 |
||
89 |
stream isNil ifTrue:[ |
|
90 |
^ nil. |
|
91 |
]. |
|
92 |
^ stream pathName. |
|
93 |
! |
|
94 |
||
11766 | 95 |
readStream |
96 |
^ self |
|
97 |
! |
|
98 |
||
8047 | 99 |
stream |
100 |
^ stream |
|
101 |
! |
|
102 |
||
103 |
stream:something |
|
104 |
stream := something. |
|
105 |
! ! |
|
106 |
||
107 |
!EncodedStream methodsFor:'stream protocol'! |
|
108 |
||
8175 | 109 |
atEnd |
110 |
^ stream atEnd |
|
111 |
! |
|
112 |
||
8165 | 113 |
close |
114 |
stream close |
|
115 |
! |
|
116 |
||
17753
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
117 |
contents |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
118 |
|
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
119 |
^String streamContents: |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
120 |
[:s| |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
121 |
[ stream atEnd ] whileFalse: |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
122 |
[s nextPut: stream next] |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
123 |
] |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
124 |
|
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
125 |
"Created: / 25-02-2010 / 23:34:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
126 |
! |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
127 |
|
8213 | 128 |
cr |
8459 | 129 |
self nextPutAll:(Character cr asString) |
8213 | 130 |
! |
131 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
132 |
emphasis:anObject |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
133 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
134 |
stream emphasis:anObject |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
135 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
136 |
"Created: / 15-06-2005 / 11:16:33 / janfrog" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
137 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
138 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
139 |
isOpen |
17751 | 140 |
^ stream notNil and:[stream isOpen] |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
141 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
142 |
|
11766 | 143 |
next |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
144 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
145 |
^encoder readNextCharacterFrom:stream |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
146 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
147 |
"Created: / 14-06-2005 / 17:01:39 / janfrog" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
148 |
! |
11766 | 149 |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
150 |
next:charactersToRead |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
151 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
152 |
^encoder readNext:charactersToRead charactersFrom:stream |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
153 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
154 |
"Created: / 16-06-2005 / 11:43:43 / masca" |
11766 | 155 |
! |
156 |
||
8147 | 157 |
nextChunk |
8175 | 158 |
|chunk| |
159 |
||
160 |
chunk := stream nextChunk. |
|
161 |
chunk isNil ifTrue:[^ chunk]. |
|
162 |
^ encoder decodeString:chunk |
|
8147 | 163 |
! |
164 |
||
8213 | 165 |
nextChunkPut:chunk |
166 |
stream nextChunkPut:(encoder encodeString:chunk) |
|
167 |
! |
|
168 |
||
8047 | 169 |
nextPut:aCharacter |
170 |
self nextPutAll:(aCharacter asString). |
|
171 |
! |
|
172 |
||
173 |
nextPutAll:aCollection |
|
174 |
stream nextPutAll:(encoder encodeString:aCollection). |
|
8147 | 175 |
! |
176 |
||
8444 | 177 |
peek |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
178 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
179 |
^stream peek |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
180 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
181 |
"Created: / 20-06-2005 / 10:13:03 / masca" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
182 |
"Modified: / 20-06-2005 / 13:06:14 / masca" |
8444 | 183 |
! |
184 |
||
8175 | 185 |
peekFor:aCharacter |
186 |
^ stream peekFor:aCharacter |
|
187 |
! |
|
188 |
||
8165 | 189 |
position |
190 |
^ stream position |
|
191 |
! |
|
192 |
||
8197 | 193 |
position0Based |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
194 |
"to be obsoleted - use position" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
195 |
|
8197 | 196 |
^ stream position0Based |
197 |
! |
|
198 |
||
199 |
position0Based:newPosition |
|
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
200 |
"to be obsoleted - use position" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
201 |
|
8197 | 202 |
stream position0Based:newPosition |
203 |
! |
|
204 |
||
8175 | 205 |
position1Based |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
206 |
"to be obsoleted - use position" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
207 |
|
8175 | 208 |
^ stream position1Based |
209 |
! |
|
210 |
||
8147 | 211 |
position1Based:newPosition |
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
212 |
"to be obsoleted - use position" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
213 |
|
8147 | 214 |
stream position1Based:newPosition |
8175 | 215 |
! |
216 |
||
8197 | 217 |
position:newPosition |
218 |
stream position:newPosition |
|
219 |
! |
|
220 |
||
17753
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
221 |
reset |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
222 |
stream reset |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
223 |
|
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
224 |
"Created: / 25-02-2010 / 23:37:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
225 |
! |
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
226 |
|
8213 | 227 |
setToEnd |
228 |
stream setToEnd |
|
229 |
! |
|
230 |
||
17732
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
231 |
skip: anInteger |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
232 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
233 |
"/ Should skip on character basis, not on bytes. This works for XML reader |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
234 |
^stream skip: anInteger |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
235 |
|
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
236 |
"Created: / 20-06-2005 / 13:06:06 / masca" |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
237 |
! |
a1892eeca6c0
trunk merged into jv branch
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
238 |
|
8175 | 239 |
skipSeparators |
240 |
^ stream skipSeparators |
|
8047 | 241 |
! ! |
242 |
||
8712
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
243 |
!EncodedStream methodsFor:'utilities'! |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
244 |
|
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
245 |
skipEncodingChunk |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
246 |
|pos chunk tree| |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
247 |
|
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
248 |
pos := self position. |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
249 |
chunk := self nextChunk. |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
250 |
tree := (Parser parseExpression:chunk). |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
251 |
"/ if this is a valid chunk (i.e. not a comment or encoding-directive), |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
252 |
"/ then position back, so it will be processed as usual. |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
253 |
tree notNil ifTrue:[ |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
254 |
self position:pos |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
255 |
] |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
256 |
! ! |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
257 |
|
8047 | 258 |
!EncodedStream class methodsFor:'documentation'! |
259 |
||
260 |
version |
|
17834 | 261 |
^ '$Id: EncodedStream.st 10632 2011-04-09 17:19:04Z vranyj1 $' |
17742 | 262 |
! |
263 |
||
264 |
version_CVS |
|
17834 | 265 |
^ 'Header: /var/local/cvs/stx/libbasic/EncodedStream.st,v 1.18 2010-02-04 16:11:51 stefan Exp ' |
17753
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
266 |
! |
17742 | 267 |
|
17753
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
268 |
version_SVN |
17834 | 269 |
^ '$Id: EncodedStream.st 10632 2011-04-09 17:19:04Z vranyj1 $' |
17753
e565afc91253
- added EncodedStream>>reset and EncodedStream>>contents (SmallRuby compiler uses that)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17751
diff
changeset
|
270 |
! ! |
17767 | 271 |
|
17772
6e0b3c06c364
Method reverted to r10532
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17767
diff
changeset
|
272 |
|
17780 | 273 |
|
17807 | 274 |
|
17814 | 275 |
|
17834 | 276 |