I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun
-
Upload
carl-ramanala -
Category
Documents
-
view
217 -
download
0
Transcript of I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun
![Page 1: I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun](https://reader031.fdocuments.us/reader031/viewer/2022021214/577d2bbf1a28ab4e1eab4d8a/html5/thumbnails/1.jpg)
8/7/2019 I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun
http://slidepdf.com/reader/full/i-wrote-a-method-for-j2me-serialization-msg00153-javasun 1/3
osdir.commailing list archiveF.A.Q. -since 2001!
te a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun.kvm http://osdir.com/ml/java.sun.kvm/2004-08/msg0
4/8/2011
![Page 2: I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun](https://reader031.fdocuments.us/reader031/viewer/2022021214/577d2bbf1a28ab4e1eab4d8a/html5/thumbnails/2.jpg)
8/7/2019 I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun
http://slidepdf.com/reader/full/i-wrote-a-method-for-j2me-serialization-msg00153-javasun 2/3
Subject: I w rote a method for J2ME SERIALI ZATION !!! -msg#00153
List: java.sun.kvm
Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index
This is an example !!!
----------------------------------------------------------
/** Created on 27-lug-04*/
import java.io.InputStream;import java.io.IOException;import java.io.DataInputStream;
/** @author Angelo Compagnucci, Francesco Maria Compagnucci** angelo.compagnucci@xxxxxxxxx** This program is free software; you can redistribute it and/or modify it under* the terms of the GNU General Public License as published by the Free Software* Foundation; either version 2 of the License, or (at your option) any later* version.** This program is distributed in the hope that it will be useful, but WITHOUT* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.** You should have received a copy of the GNU General Public License along with* this program; if not, write to the Free Software Foundation, Inc., 59 Temple* Place - Suite 330, Boston, MA 02111-1307, USA.**/public class ObjectInputStream1 {private DataInputStream dis;public ObjectInputStream1(InputStream is) {this.dis = new DataInputStream(is);}public Object readObject()throwsIOException,ClassNotFoundException,IllegalAccessException,InstantiationException {Object obj = (SerializableCLDC) Class.forName(dis.readUTF()).newInstance();((SerializableCLDC)obj).deSerialize(dis);
return obj;}
}
----------------------------------------------------------
import java.io.DataOutputStream;import java.io.IOException;import java.io.DataInputStream;
public class AltroVario implements SerializableCLDC {
private int a;private String b;
/*** Method serialize*** @param dos
*@throws IOException**/public void serialize(DataOutputStream dos) throws IOException {dos.writeInt(a);dos.writeUTF(b);}
/*** Method deSerialize*** @param dis*@throws IOException@throws ClassNotFoundException@throws IllegalAccessException@throws InstantiationException*
Recent Msgs:
postgresql-pgsql-general/2011-04/msg00107
kde-devel/2011-04/msg00010.html
wx-users/2011-04/msg00051.html
commits.gnome/2011-04/msg02993.html
scm-fedora-commits/2011-04/msg01147.htm
h2-database/2011-04/msg00059.html
freeipa-devel/2011-04/msg00029.html
scm-fedora-commits/2011-04/msg01411.htm
Enterprise ArchitectureLeading enterprise architecture solutions
financial serviceswww.ovationsgroup.com
Need Custom Software?
Complete software solutions from ConceCode.www.netgen.co.za
Free SA chat sites
Meet new friends in your city and chat, sphotos and blogmotribe.mobi
Free Chat Rooms in SA
1000s of Sexy Singles want to Chat to Yyour Ideal Match Today!www.ChatSouthAfrica.com
te a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun.kvm http://osdir.com/ml/java.sun.kvm/2004-08/msg0
4/8/2011
![Page 3: I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun](https://reader031.fdocuments.us/reader031/viewer/2022021214/577d2bbf1a28ab4e1eab4d8a/html5/thumbnails/3.jpg)
8/7/2019 I wrote a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun
http://slidepdf.com/reader/full/i-wrote-a-method-for-j2me-serialization-msg00153-javasun 3/3
Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz & git.net are too!
Advertising by
te a method for J2ME SERIALIZATION !!! - msg#00153 - java.sun.kvm http://osdir.com/ml/java.sun.kvm/2004-08/msg0
4/8/2011