Out, vile dos line endings

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6759 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2012-01-03 18:44:50 +00:00
parent 750e2fdac5
commit a25a4d27d8
@@ -1,70 +1,70 @@
// //
// $Id$ // $Id$
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2011 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2011 Three Rings Design, Inc., All Rights Reserved
// http://code.google.com/p/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published // under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or // by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version. // (at your option) any later version.
// //
// This library is distributed in the hope that it will be useful, // This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details. // Lesser General Public License for more details.
// //
// You should have received a copy of the GNU Lesser General Public // You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software // License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.io.streamers { package com.threerings.io.streamers {
import com.threerings.io.ObjectInputStream; import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream; import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer; import com.threerings.io.Streamer;
/** /**
* A streamer that allows subclasses or implementations of the classes or interfaces supported by * A streamer that allows subclasses or implementations of the classes or interfaces supported by
* other streamers to be included in upstream messages. All serialization support is impelemented * other streamers to be included in upstream messages. All serialization support is impelemented
* using the parent streamer, but the java class name is different. This is so that the streamer * using the parent streamer, but the java class name is different. This is so that the streamer
* caching mechanism and the upstream class mappings both work. * caching mechanism and the upstream class mappings both work.
*/ */
public class DelegatingStreamer extends Streamer public class DelegatingStreamer extends Streamer
{ {
public function DelegatingStreamer (parent :Streamer, targ:Class, jname:String=null) public function DelegatingStreamer (parent :Streamer, targ:Class, jname:String=null)
{ {
super(targ, jname); super(targ, jname);
_parent = parent; _parent = parent;
} }
/** @inheritDoc */ /** @inheritDoc */
override public function getUpstreamJavaClassName () :String override public function getUpstreamJavaClassName () :String
{ {
return _parent.getUpstreamJavaClassName(); return _parent.getUpstreamJavaClassName();
} }
/** @inheritDoc */ /** @inheritDoc */
override public function writeObject (obj :Object, out :ObjectOutputStream) :void override public function writeObject (obj :Object, out :ObjectOutputStream) :void
//throws IOError //throws IOError
{ {
_parent.writeObject(obj, out); _parent.writeObject(obj, out);
} }
/** @inheritDoc */ /** @inheritDoc */
override public function createObject (ins :ObjectInputStream) :Object override public function createObject (ins :ObjectInputStream) :Object
//throws IOError //throws IOError
{ {
return _parent.createObject(ins); return _parent.createObject(ins);
} }
/** @inheritDoc */ /** @inheritDoc */
override public function readObject (obj :Object, ins :ObjectInputStream) :void override public function readObject (obj :Object, ins :ObjectInputStream) :void
//throws IOError //throws IOError
{ {
_parent.readObject(obj, ins); _parent.readObject(obj, ins);
} }
protected var _parent :Streamer; protected var _parent :Streamer;
} }
} }