[Pharo-users] Working with a compressed Fuel file?
stephan at stack.nl
Sun Jan 3 14:18:09 EST 2016
I'm trying to work with a compressed Fuel file, without having to expand
everything at the same time. It looks like not all streams are created
equally. I seem to need a File instead of a FileReference:
fileRef := File named: (FileSystem disk workingDirectory / (self
fileName, '.zip')) pathString.
fileRef writeStreamDo: [ :s |
zipStream := GZipWriteStream on: s.
repository := nil.
FLSerializer serialize: self on: zipStream.
And materializing doesn't like this stream
|zipStream fileRef theNew|
fileRef := File named: aFileName.
fileRef readStreamDo: [ :s |
zipStream := GZipReadStream on: s.
theNew := (FLMaterializer new materializeFrom: zipStream) root.
How am I supposed to work with compressed Fuel files?
More information about the Pharo-users