Re: Reading from Streams - Convenience methods
Re: Reading from Streams - Convenience methods
- Subject: Re: Reading from Streams - Convenience methods
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 24 Aug 2008 16:11:28 +0200
Le 24 août 08 à 09:29, Ananda Bollu a écrit :
Hi,
What is the best way to read and write data to a Stream.
In Java, DataInputStream and DataOutputStream classes provide various
serialization methods such as, readInt(), readLong(), readBoolean()
etc.
Is there anything equivalent for serializing and de-serializing in
cocoa?
Thank you
Ananda
Sometime, Google can be very helpful to find this kind of information:
For example searching for : serialization cocoa
will returns as first result: Archives and Serializations Programming
Guide for Cocoa.
http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/Concepts/serializations.html
This guide will explain you the difference between archiving and
serialization, and will also explain you how to use thoses two way to
convert objects into data.
As you don't said what you're trying to do, I cannot advice you about
which way you have to go.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden