Author: kostat
Date: 2006-01-09 11:02:35 -0500 (Mon, 09 Jan 2006)
New Revision: 55234

Modified:
   trunk/mcs/class/System.Web/System.Web.Util/AltSerialization.cs
   trunk/mcs/class/System.Web/System.Web.Util/ChangeLog
Log:
under TARGET_JVM: merging /main/4

Modified: trunk/mcs/class/System.Web/System.Web.Util/AltSerialization.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Util/AltSerialization.cs      
2006-01-09 15:59:31 UTC (rev 55233)
+++ trunk/mcs/class/System.Web/System.Web.Util/AltSerialization.cs      
2006-01-09 16:02:35 UTC (rev 55234)
@@ -71,8 +71,12 @@
                        int i = types.IndexOf (type);
                        if (i == -1) {
                                w.Write (15); // types.Count
+#if TARGET_JVM
+                               
((System.Web.J2EE.ObjectOutputStream)w.BaseStream).NativeStream.writeObject(value);
+#else
                                BinaryFormatter bf = new BinaryFormatter ();
                                bf.Serialize (w.BaseStream, value);
+#endif
                                return;
                        }
                        
@@ -126,8 +130,12 @@
                internal static object DeserializeFromIndex (int index, 
BinaryReader r)
                {
                        if (index == 15){
+#if TARGET_JVM
+                               return 
((System.Web.J2EE.ObjectInputStream)r.BaseStream).NativeStream.readObject();
+#else
                                BinaryFormatter bf = new BinaryFormatter ();
                                return bf.Deserialize (r.BaseStream);
+#endif
                        }
                        
                        object value = null;

Modified: trunk/mcs/class/System.Web/System.Web.Util/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Util/ChangeLog        2006-01-09 
15:59:31 UTC (rev 55233)
+++ trunk/mcs/class/System.Web/System.Web.Util/ChangeLog        2006-01-09 
16:02:35 UTC (rev 55234)
@@ -1,3 +1,7 @@
+2006-01-09  Konstantin Triger <[EMAIL PROTECTED]>
+
+       AltSerialization.cs: under TARGET_JVM: merging /main/4
+
 2005-11-28  Chris Toshok  <[EMAIL PROTECTED]>
 
        * WebEncoding.cs (FileEncoding, ResponseEncoding,

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to