[Pharo-project] how to serialize Text?

Hilaire Fernandes hilaire.fernandes at gmail.com
Sun Feb 13 16:53:56 CET 2011

I don't understand much the protocole with Text and if it is possible to
serialize it.

I can save a Text in a stream:
stream := ReadWriteStream on: String new.
myText storeOn: stream.

But how to use the stream to create a new Text instance:

The stream contents looks like:

Text string: ''absd Hello with me
c'' runs: (RunArray runs: #(5 5 6 2 2 ) values: ((Array new: 5)...

I guess it is a trivial situation but I don't know how to do it

Any clue?


Education 0.2 -- http://blog.ofset.org/hilaire

More information about the Pharo-project mailing list