[Pharo-project] how to serialize Text?
bschwab at anest.ufl.edu
Sun Feb 13 17:46:24 CET 2011
Object readFrom:( Text fromString:'Hello' ) storeString
You might also have a look at SIXX. I have not used it for anything big or for a long period of time, but no complaints so far, other than the output being more verbose than I might like. Still, it seems to be a good serializer.
From: pharo-project-bounces at lists.gforge.inria.fr [pharo-project-bounces at lists.gforge.inria.fr] On Behalf Of Hilaire Fernandes [hilaire.fernandes at gmail.com]
Sent: Sunday, February 13, 2011 10:53 AM
To: pharo-project at lists.gforge.inria.fr
Subject: [Pharo-project] how to serialize Text?
I don't understand much the protocole with Text and if it is possible to
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
Education 0.2 -- http://blog.ofset.org/hilaire
More information about the Pharo-project