Some work on streaming.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3855 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-15 01:41:14 +00:00
parent 28ac720b98
commit 1d36299e3c
13 changed files with 216 additions and 175 deletions
@@ -11,7 +11,7 @@ public class StringStreamer extends Streamer
{
public function StringStreamer ()
{
super(String);
super(String, "java.lang.String");
}
public override function createObject (ins :ObjectInputStream) :*
@@ -19,15 +19,13 @@ public class StringStreamer extends Streamer
return ins.readUTF();
}
public override function writeObject (obj :*, out :ObjectOutputStream,
useWriter :Boolean) :void
public override function writeObject (obj :*, out :ObjectOutputStream) :void
{
var s :String = (obj as String);
out.writeUTF(s);
}
public override function readObject (obj :*, ins :ObjectInputStream,
useReader :Boolean) :void
public override function readObject (obj :*, ins :ObjectInputStream) :void
{
// nothing here, the String is fully read in createObject()
}