0
|
1 |
"{ Package: 'stx:goodies/ston' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
Object subclass:#STONStreamWriter
|
|
6 |
instanceVariableNames:'writer first'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'STON-Core-Writer'
|
|
10 |
!
|
|
11 |
|
|
12 |
!STONStreamWriter class methodsFor:'instance creation'!
|
|
13 |
|
|
14 |
new
|
|
15 |
"return an initialized instance"
|
|
16 |
|
|
17 |
^ self basicNew initialize.
|
|
18 |
!
|
|
19 |
|
|
20 |
on: stonWriter
|
|
21 |
^ self new
|
|
22 |
on: stonWriter;
|
|
23 |
yourself
|
|
24 |
! !
|
|
25 |
|
|
26 |
!STONStreamWriter methodsFor:'initialize-release'!
|
|
27 |
|
|
28 |
initialize
|
|
29 |
super initialize.
|
|
30 |
first := true
|
|
31 |
!
|
|
32 |
|
|
33 |
on: stonWriter
|
|
34 |
writer := stonWriter
|
|
35 |
! !
|
|
36 |
|