2 // System.Web.UI.LosFormatter
5 // Ben Maurer (bmaurer@users.sourceforge.net)
13 namespace System.Web.UI {
14 public sealed class LosFormatter {
16 ObjectStateFormatter osf = new ObjectStateFormatter ();
18 public LosFormatter ()
24 public LosFormatter (bool enableMac, string macKeyModifier)
28 public object Deserialize (Stream stream)
30 return osf.Deserialize (stream);
33 public object Deserialize (TextReader input)
36 throw new ArgumentNullException ("input");
38 return Deserialize (input.ReadToEnd ());
41 public object Deserialize (string input)
43 return osf.Deserialize (input);
46 public void Serialize (Stream stream, object value)
48 osf.Serialize (stream, value);
51 public void Serialize (TextWriter output, object value)
54 throw new ArgumentNullException ("output");
56 output.Write (osf.Serialize (value));