author | Claus Gittinger <cg@exept.de> |
Wed, 05 Feb 2014 18:19:09 +0100 | |
changeset 15963 | 2549ef06a310 |
parent 15664 | 1b91431394a5 |
child 16258 | 1582c656cdb0 |
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 |
15618 | 15 |
instanceVariableNames:'encoder stream' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
15963 | 18 |
category:'Collections-Text-Encodings' |
8047 | 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 |
" |
|
15049 | 35 |
! |
36 |
||
37 |
documentation |
|
38 |
" |
|
15664 | 39 |
a stream which transparently decodes from an external decoding, |
40 |
looking for '{ Encoding: xxx' near the beginning of the file. |
|
15049 | 41 |
|
15664 | 42 |
especially targeted towards reading ST/X source files. |
15049 | 43 |
" |
8148 | 44 |
! ! |
8047 | 45 |
|
46 |
!EncodedStream class methodsFor:'instance creation'! |
|
47 |
||
48 |
stream:streamArg encoder:encoder |
|
49 |
^ (self basicNew) stream:streamArg; encoder:encoder |
|
50 |
! ! |
|
51 |
||
12610 | 52 |
!EncodedStream class methodsFor:'utilities'! |
53 |
||
54 |
decodedStreamFor:aStream |
|
15345 | 55 |
"given a positionable stream, guess its encoding (by reading the |
56 |
first few lines, looking for a string with an encoding hint, |
|
57 |
and return an appropriate encoded string, which does the decoding |
|
58 |
on the fly. Used mostly to read UTF8 files (source code)" |
|
59 |
||
15049 | 60 |
|encodingSymbol decoder decodedStream| |
12610 | 61 |
|
15664 | 62 |
aStream inputStream isPositionable ifTrue:[ |
63 |
encodingSymbol := CharacterEncoder guessEncodingOfStream:aStream inputStream. |
|
15963 | 64 |
decoder := CharacterEncoder encoderFor:encodingSymbol. |
15049 | 65 |
decoder isNil ifTrue:[ |
66 |
"/ ascii or iso8895-1 |
|
67 |
^ aStream |
|
12610 | 68 |
]. |
15664 | 69 |
decodedStream := self stream:aStream encoder:decoder. |
15963 | 70 |
"JV@2012-03-27: NO, DO NOT CHANGE POSITION!! Caller might be interested |
71 |
in all data!!!!!!" |
|
72 |
"/decodedStream skipEncodingChunk. |
|
15049 | 73 |
] ifFalse:[ |
74 |
"/ setup for no-encoding; |
|
75 |
"/ switch to a real encoder later, |
|
15664 | 76 |
"/ whenever an encoding pragma is encountered later by #nextChunk. |
77 |
decodedStream := self stream:aStream encoder:CharacterEncoder nullEncoderInstance. |
|
14095 | 78 |
]. |
12610 | 79 |
^ decodedStream |
15963 | 80 |
|
81 |
"Modified: / 23-08-2013 / 17:30:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
15049 | 82 |
! |
83 |
||
84 |
encoderFor:anEncodingSymbol |
|
85 |
(anEncodingSymbol isNil |
|
86 |
or:[ anEncodingSymbol = #'iso8859-1' |
|
87 |
or:[ anEncodingSymbol = #'ascii' ]]) ifTrue:[ |
|
88 |
^ nil |
|
89 |
]. |
|
90 |
^ CharacterEncoder encoderFor:anEncodingSymbol. |
|
12610 | 91 |
! ! |
92 |
||
8047 | 93 |
!EncodedStream methodsFor:'accessing'! |
94 |
||
11992 | 95 |
contentsSpecies |
96 |
||
97 |
"Not sure if this is ok" |
|
98 |
||
99 |
^ stream contentsSpecies. |
|
100 |
||
101 |
"/ ^UnicodeString |
|
102 |
||
103 |
"Created: / 14-06-2005 / 17:11:01 / janfrog" |
|
104 |
! |
|
105 |
||
8047 | 106 |
encoder |
107 |
^ encoder |
|
108 |
! |
|
109 |
||
110 |
encoder:something |
|
111 |
encoder := something. |
|
112 |
! |
|
113 |
||
15593 | 114 |
inputStream |
115 |
^ stream inputStream |
|
116 |
! |
|
117 |
||
118 |
lineNumber |
|
119 |
^ stream lineNumber |
|
120 |
! |
|
121 |
||
12646 | 122 |
pathName |
123 |
"if our base stream hat a pathname, delegate..." |
|
124 |
||
125 |
stream isNil ifTrue:[ |
|
126 |
^ nil. |
|
127 |
]. |
|
128 |
^ stream pathName. |
|
129 |
! |
|
130 |
||
11766 | 131 |
readStream |
132 |
^ self |
|
133 |
! |
|
134 |
||
8047 | 135 |
stream |
136 |
^ stream |
|
137 |
! |
|
138 |
||
139 |
stream:something |
|
140 |
stream := something. |
|
141 |
! ! |
|
142 |
||
15963 | 143 |
!EncodedStream methodsFor:'private fileIn'! |
144 |
||
145 |
basicFileInNotifying:someone passChunk:passChunk |
|
146 |
"central method to file in from the receiver, i.e. read chunks and evaluate them - |
|
147 |
return the value of the last chunk. |
|
148 |
Someone (which is usually some codeView) is notified of errors." |
|
149 |
||
150 |
|lastValue pkg nameSpace usedNameSpaces |
|
151 |
packageQuerySignal nameSpaceQuerySignal usedNameSpaceQuerySignal |
|
152 |
changeDefaultApplicationNotificationSignal |
|
153 |
defaultApplicationQuerySignal defaultApplication |
|
154 |
confirmationQuerySignal handledSignals passedSignals askSomeoneForPackage outerContext askForVariableTypeOfUndeclaredQuery| |
|
155 |
||
156 |
self skipSeparators. |
|
157 |
lastValue := self peek. |
|
158 |
lastValue == $< ifTrue:[ |
|
159 |
"/ assume, it's an xml file |
|
160 |
^ self fileInXMLNotifying:someone passChunk:passChunk. |
|
161 |
]. |
|
162 |
lastValue == $# ifTrue:[ |
|
163 |
"assume unix interpreter name: |
|
164 |
'#!!stx -e' or something like this" |
|
165 |
self nextPeek == $!! ifTrue:[ |
|
166 |
"skip the unix command line" |
|
167 |
self nextLine |
|
168 |
] ifFalse:[ |
|
169 |
self error:'Invalid chunk start' |
|
170 |
] |
|
171 |
]. |
|
172 |
||
173 |
Smalltalk::Compiler isNil ifTrue:[ |
|
174 |
self isFileStream ifTrue:[ |
|
175 |
Transcript show:('[' , self pathName , '] '). |
|
176 |
]. |
|
177 |
Transcript showCR:'cannot fileIn (no compiler).'. |
|
178 |
^ nil. |
|
179 |
]. |
|
180 |
||
181 |
"/ support for V'Age applications |
|
182 |
defaultApplicationQuerySignal := Class defaultApplicationQuerySignal. |
|
183 |
changeDefaultApplicationNotificationSignal := Class changeDefaultApplicationNotificationSignal. |
|
184 |
||
185 |
"/ support for ST/X's nameSpaces & packages |
|
186 |
packageQuerySignal := Class packageQuerySignal. |
|
187 |
nameSpaceQuerySignal := Class nameSpaceQuerySignal. |
|
188 |
usedNameSpaceQuerySignal := Class usedNameSpaceQuerySignal. |
|
189 |
||
190 |
(someone respondsTo:#packageToInstall) ifTrue:[ |
|
191 |
pkg := someone packageToInstall. |
|
192 |
askSomeoneForPackage := true. |
|
193 |
] ifFalse:[ |
|
194 |
pkg := packageQuerySignal query. |
|
195 |
askSomeoneForPackage := false. |
|
196 |
]. |
|
197 |
(someone respondsTo:#currentNameSpace) ifTrue:[ |
|
198 |
nameSpace := someone currentNameSpace |
|
199 |
] ifFalse:[ |
|
200 |
nameSpace := nameSpaceQuerySignal query. |
|
201 |
]. |
|
202 |
(someone respondsTo:#usedNameSpaces) ifTrue:[ |
|
203 |
usedNameSpaces := someone usedNameSpaces |
|
204 |
] ifFalse:[ |
|
205 |
usedNameSpaces := usedNameSpaceQuerySignal query. |
|
206 |
]. |
|
207 |
(someone respondsTo:#defaultApplication) ifTrue:[ |
|
208 |
defaultApplication := someone defaultApplication |
|
209 |
] ifFalse:[ |
|
210 |
defaultApplication := defaultApplicationQuerySignal query. |
|
211 |
]. |
|
212 |
||
213 |
confirmationQuerySignal := Metaclass confirmationQuerySignal. |
|
214 |
||
215 |
handledSignals := SignalSet new. |
|
216 |
passedSignals := IdentitySet new. |
|
217 |
||
218 |
handledSignals add:changeDefaultApplicationNotificationSignal. |
|
219 |
passedSignals add:changeDefaultApplicationNotificationSignal. |
|
220 |
handledSignals add:defaultApplicationQuerySignal. |
|
221 |
passedSignals add:defaultApplicationQuerySignal. |
|
222 |
||
223 |
handledSignals add:packageQuerySignal. |
|
224 |
handledSignals add:usedNameSpaceQuerySignal. |
|
225 |
handledSignals add:nameSpaceQuerySignal. |
|
226 |
handledSignals add:confirmationQuerySignal. |
|
227 |
passedSignals add:confirmationQuerySignal. |
|
228 |
Parser notNil ifTrue:[ |
|
229 |
"only if libcomp is present" |
|
230 |
"Also catch a 'Parser askForVariableTypeOfUndeclaredQuery' and proceed with nil. |
|
231 |
Imagine somebody has autodefine workspace variables on and then |
|
232 |
evaluate Smalltalk loadPackage:'xyz' that loads code from source (using file-in), |
|
233 |
certainly we don't want to compile workspace variable access for every |
|
234 |
not-yet-loaded class in some namespace. |
|
235 |
This is demonstrated by Regression::CompilerTests2>>test_01 |
|
236 |
and this change actually fixes this test." |
|
237 |
askForVariableTypeOfUndeclaredQuery := Parser askForVariableTypeOfUndeclaredQuery. |
|
238 |
handledSignals add:askForVariableTypeOfUndeclaredQuery. |
|
239 |
]. |
|
240 |
||
241 |
||
242 |
outerContext := thisContext. |
|
243 |
||
244 |
handledSignals handle:[:ex | |
|
245 |
|sig| |
|
246 |
||
247 |
sig := ex creator. |
|
248 |
((passedSignals includes:sig) and:[sig isHandledIn:outerContext]) ifTrue:[ |
|
249 |
ex reject |
|
250 |
]. |
|
251 |
||
252 |
sig == changeDefaultApplicationNotificationSignal ifTrue:[ |
|
253 |
"/ invoked via #becomeDefault to set the defaultApp and the package. |
|
254 |
"/ (only when filing in V'Age code) |
|
255 |
defaultApplication := ex parameter. |
|
256 |
pkg := defaultApplication name asSymbol. |
|
257 |
ex proceedWith:nil |
|
258 |
]. |
|
259 |
sig == defaultApplicationQuerySignal ifTrue:[ |
|
260 |
"/ query for the application to add classes & methods into |
|
261 |
"/ (only when filing in V'Age code) |
|
262 |
ex proceedWith:defaultApplication |
|
263 |
]. |
|
264 |
sig == packageQuerySignal ifTrue:[ |
|
265 |
"answer the package to use for classes & methods" |
|
266 |
askSomeoneForPackage ifTrue:[ |
|
267 |
ex proceedWith:someone packageToInstall |
|
268 |
] ifFalse:[ |
|
269 |
ex proceedWith:pkg |
|
270 |
] |
|
271 |
]. |
|
272 |
sig == usedNameSpaceQuerySignal ifTrue:[ |
|
273 |
"answer the nameSpaces to be searched when encountering globals" |
|
274 |
ex proceedWith:usedNameSpaces |
|
275 |
]. |
|
276 |
sig == nameSpaceQuerySignal ifTrue:[ |
|
277 |
"answer the nameSpace to install new classes in" |
|
278 |
ex proceedWith:nameSpace |
|
279 |
]. |
|
280 |
sig == confirmationQuerySignal ifTrue:[ |
|
281 |
"don't pop up dialogs" |
|
282 |
ex proceedWith:false |
|
283 |
]. |
|
284 |
sig == askForVariableTypeOfUndeclaredQuery ifTrue:[ |
|
285 |
"no autodefined variables or so" |
|
286 |
ex proceedWith:nil. |
|
287 |
]. |
|
288 |
] do:[ |
|
289 |
[self atEnd] whileFalse:[ |
|
290 |
lastValue := self fileInNextChunkNotifying:someone passChunk:passChunk |
|
291 |
] |
|
292 |
]. |
|
293 |
^ lastValue |
|
294 |
||
295 |
"Modified: / 10.9.1999 / 16:54:01 / stefan" |
|
296 |
"Modified: / 16.11.2001 / 16:21:28 / cg" |
|
297 |
"Modified: / 18-03-2013 / 17:45:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
298 |
! ! |
|
299 |
||
8047 | 300 |
!EncodedStream methodsFor:'stream protocol'! |
301 |
||
8175 | 302 |
atEnd |
303 |
^ stream atEnd |
|
304 |
! |
|
305 |
||
8165 | 306 |
close |
307 |
stream close |
|
308 |
! |
|
309 |
||
13400 | 310 |
contents |
311 |
||
312 |
^String streamContents: |
|
313 |
[:s| |
|
314 |
[ stream atEnd ] whileFalse: |
|
315 |
[s nextPut: stream next] |
|
316 |
] |
|
317 |
||
318 |
"Created: / 25-02-2010 / 23:34:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
319 |
! |
|
320 |
||
8213 | 321 |
cr |
8459 | 322 |
self nextPutAll:(Character cr asString) |
8213 | 323 |
! |
324 |
||
11992 | 325 |
emphasis:anObject |
326 |
||
327 |
stream emphasis:anObject |
|
328 |
||
329 |
"Created: / 15-06-2005 / 11:16:33 / janfrog" |
|
330 |
! |
|
331 |
||
15477 | 332 |
flush |
333 |
stream flush |
|
334 |
! |
|
335 |
||
11946 | 336 |
isOpen |
12690 | 337 |
^ stream notNil and:[stream isOpen] |
11946 | 338 |
! |
339 |
||
11766 | 340 |
next |
11992 | 341 |
|
342 |
^encoder readNextCharacterFrom:stream |
|
343 |
||
344 |
"Created: / 14-06-2005 / 17:01:39 / janfrog" |
|
345 |
! |
|
11766 | 346 |
|
11992 | 347 |
next:charactersToRead |
348 |
||
349 |
^encoder readNext:charactersToRead charactersFrom:stream |
|
350 |
||
351 |
"Created: / 16-06-2005 / 11:43:43 / masca" |
|
11766 | 352 |
! |
353 |
||
8147 | 354 |
nextChunk |
15049 | 355 |
"as a side effect, check for an encoding chunk" |
15664 | 356 |
|
357 |
|prevEncoder chunk| |
|
8175 | 358 |
|
359 |
chunk := stream nextChunk. |
|
15664 | 360 |
chunk isNil ifTrue:[ |
361 |
^ nil |
|
362 |
]. |
|
15049 | 363 |
prevEncoder := encoder. |
15664 | 364 |
(prevEncoder isNullEncoder and:[stream isPositionable not]) ifTrue:[ |
15049 | 365 |
"/ not already checked |
15664 | 366 |
"/ check if we need lazy setup of the encoder |
367 |
"/ (used with non-positionable streams) |
|
368 |
(chunk includesString:'{ Encoding:') ifTrue:[ |
|
369 |
|enc| |
|
370 |
||
371 |
enc := self class encoderFor:(CharacterEncoder guessEncodingOfBuffer:chunk). |
|
372 |
enc notNil ifTrue:[ |
|
373 |
prevEncoder := encoder := enc. |
|
374 |
]. |
|
375 |
] |
|
15049 | 376 |
]. |
377 |
^ prevEncoder decodeString:chunk |
|
8147 | 378 |
! |
379 |
||
8213 | 380 |
nextChunkPut:chunk |
381 |
stream nextChunkPut:(encoder encodeString:chunk) |
|
382 |
! |
|
383 |
||
8047 | 384 |
nextPut:aCharacter |
385 |
self nextPutAll:(aCharacter asString). |
|
386 |
! |
|
387 |
||
388 |
nextPutAll:aCollection |
|
389 |
stream nextPutAll:(encoder encodeString:aCollection). |
|
8147 | 390 |
! |
391 |
||
8444 | 392 |
peek |
11992 | 393 |
|
394 |
^stream peek |
|
395 |
||
396 |
"Created: / 20-06-2005 / 10:13:03 / masca" |
|
397 |
"Modified: / 20-06-2005 / 13:06:14 / masca" |
|
8444 | 398 |
! |
399 |
||
8175 | 400 |
peekFor:aCharacter |
401 |
^ stream peekFor:aCharacter |
|
402 |
! |
|
403 |
||
8165 | 404 |
position |
405 |
^ stream position |
|
406 |
! |
|
407 |
||
8197 | 408 |
position0Based |
15618 | 409 |
<resource: #obsolete> |
11947 | 410 |
"to be obsoleted - use position" |
411 |
||
15618 | 412 |
^ stream position |
8197 | 413 |
! |
414 |
||
415 |
position0Based:newPosition |
|
15618 | 416 |
<resource: #obsolete> |
11947 | 417 |
"to be obsoleted - use position" |
418 |
||
15618 | 419 |
stream position:newPosition |
8197 | 420 |
! |
421 |
||
8175 | 422 |
position1Based |
15618 | 423 |
<resource: #obsolete> |
11947 | 424 |
"to be obsoleted - use position" |
425 |
||
15618 | 426 |
^ stream position + 1 |
8175 | 427 |
! |
428 |
||
8147 | 429 |
position1Based:newPosition |
15618 | 430 |
<resource: #obsolete> |
11947 | 431 |
"to be obsoleted - use position" |
432 |
||
15618 | 433 |
stream position:newPosition-1 |
8175 | 434 |
! |
435 |
||
8197 | 436 |
position:newPosition |
437 |
stream position:newPosition |
|
438 |
! |
|
439 |
||
13400 | 440 |
reset |
441 |
stream reset |
|
442 |
||
443 |
"Created: / 25-02-2010 / 23:37:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
444 |
! |
|
445 |
||
8213 | 446 |
setToEnd |
447 |
stream setToEnd |
|
448 |
! |
|
449 |
||
14333 | 450 |
size |
451 |
"not correct, but probably better than 0" |
|
452 |
||
15585 | 453 |
"/ is that better? |
454 |
"/ self error:'size of input is unknown (due to decoding)' |
|
14333 | 455 |
^ stream size |
456 |
||
457 |
"Created: / 31-08-2012 / 16:52:40 / cg" |
|
458 |
! |
|
459 |
||
11992 | 460 |
skip: anInteger |
461 |
||
462 |
"/ Should skip on character basis, not on bytes. This works for XML reader |
|
463 |
^stream skip: anInteger |
|
464 |
||
465 |
"Created: / 20-06-2005 / 13:06:06 / masca" |
|
466 |
! |
|
467 |
||
8175 | 468 |
skipSeparators |
469 |
^ stream skipSeparators |
|
15477 | 470 |
! |
471 |
||
472 |
sync |
|
473 |
stream sync |
|
474 |
! |
|
475 |
||
476 |
syncData |
|
477 |
stream syncData |
|
8047 | 478 |
! ! |
479 |
||
15049 | 480 |
!EncodedStream methodsFor:'testing'! |
481 |
||
482 |
isEncodedStream |
|
483 |
^ true |
|
15963 | 484 |
|
485 |
"Created: / 04-02-2014 / 20:27:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
15592 | 486 |
! |
487 |
||
488 |
isReadable |
|
489 |
^ stream isReadable |
|
490 |
! |
|
491 |
||
492 |
isWritable |
|
493 |
^ stream isWritable |
|
15049 | 494 |
! ! |
495 |
||
8712
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
496 |
!EncodedStream methodsFor:'utilities'! |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
497 |
|
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
498 |
skipEncodingChunk |
14091 | 499 |
|pos chunk token| |
8712
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
500 |
|
13525
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
501 |
stream isPositionable ifFalse:[ |
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
502 |
^ self |
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
503 |
]. |
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
504 |
|
8712
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
505 |
pos := self position. |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
506 |
chunk := self nextChunk. |
14084 | 507 |
[ |
508 |
"/ if this is a valid chunk (i.e. not a comment or encoding-directive), |
|
509 |
"/ then position back, so it will be processed as usual. |
|
14091 | 510 |
"/ We could parse here, but this is overkill, since we are only interested in the fact, |
511 |
"/ that there is anything else than a comment in the chunk. |
|
512 |
"/ result := (Parser for:chunk) |
|
513 |
"/ ignoreErrors:true; |
|
514 |
"/ ignoreWarnings:true; |
|
515 |
"/ parseMethodBody. |
|
516 |
||
517 |
token := (Scanner for:chunk) |
|
518 |
ignoreErrors:true; |
|
519 |
ignoreWarnings:true; |
|
520 |
nextToken. |
|
521 |
||
522 |
token ~= #EOF ifTrue:[ |
|
14084 | 523 |
self position:pos |
524 |
]. |
|
14086 | 525 |
] on:Parser parseWarningSignal do:[:ex| |
14084 | 526 |
"really ignore any error. |
527 |
Even setting ignorError will output diagnostics here |
|
528 |
during standalone startup when debugging" |
|
14086 | 529 |
ex proceedWith:#ignore. |
14084 | 530 |
]. |
13525
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
531 |
|
e17ebc11ca73
changed: #skipEncodingChunk
Claus Gittinger <cg@exept.de>
parents:
13400
diff
changeset
|
532 |
"Modified: / 29-07-2011 / 17:42:11 / cg" |
8712
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
533 |
! ! |
bcef3a0c0a1d
skipEncodingCHunk now in EncodedStream
Claus Gittinger <cg@exept.de>
parents:
8459
diff
changeset
|
534 |
|
8047 | 535 |
!EncodedStream class methodsFor:'documentation'! |
536 |
||
14086 | 537 |
version |
15963 | 538 |
^ '$Header: /cvs/stx/stx/libbasic/EncodedStream.st,v 1.35 2014-02-05 17:19:09 cg Exp $' |
14086 | 539 |
! |
540 |
||
13400 | 541 |
version_CVS |
15963 | 542 |
^ '$Header: /cvs/stx/stx/libbasic/EncodedStream.st,v 1.35 2014-02-05 17:19:09 cg Exp $' |
12610 | 543 |
! |
544 |
||
13400 | 545 |
version_SVN |
15345 | 546 |
^ '$ Id: EncodedStream.st 10643 2011-06-08 21:53:07Z vranyj1 $' |
8047 | 547 |
! ! |
15049 | 548 |