Manuscript (Case [Issue]22655) _Inbox - Better comments for PNGReadWriter >> formFromStream:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22655) _Inbox - Better comments for PNGReadWriter >> formFromStream:

Pharo Issue Tracker
Manuscript Notification
avatar
First Impression Counts in Project:  _Inbox: Not Spam  •  You are subscribed to this case
Why refer to another class there ? You write an example using PNGReadWriter in ImageReadWriter.

ImageReadWriter does auto format detection.

<code>
ImageReadWriter formFromFileNamed: 'control-unit.png'.
ImageReadWriter formFromStream: 'control-unit.png' asFileReference binaryReadStream.
</code>

#formFromStream does a #close (which makes sense in this case, but not in general for a read method), look at the implementation of #formFromFileNamed:

Don't use File
Priority Priority: 5 – Fix If Time Status Status: Resolved (Fix Review Needed)
Assigned To Assigned to: Stephane Ducasse Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker