Package com.threerings.io

Examples of com.threerings.io.ObjectInputStream


        }

        public TourneyConfig getTourneyConfig ()
        {
            ObjectInputStream ostream = new ObjectInputStream(new ByteArrayInputStream(config));
            TourneyConfig tconfig = null;

            try {
                tconfig = (TourneyConfig)ostream.readObject();

            } catch (Exception e) {
                log.warning("Error reading TourneyConfig from byte array [e=" + e + "].");
            }
            return tconfig;
View Full Code Here


        Exception error = null;

        try {
            // decode its contents from the serialized data
            ByteArrayInputStream bin = new ByteArrayInputStream(data);
            stat.unpersistFrom(new ObjectInputStream(bin), this);
            stat.setModCount(modCount);
            return stat;

        } catch (ClassNotFoundException cnfe) {
            error = cnfe;
View Full Code Here

            SceneUpdate update = (SceneUpdate)updateClass.newInstance();
            update.init(sceneId, sceneVersion);

            // decode its contents from the serialized data
            ByteArrayInputStream bin = new ByteArrayInputStream(data);
            update.unpersistFrom(new ObjectInputStream(bin));
            return update;

        } catch (IOException ioe) {
            error = ioe;
            errmsg = "Unable to decode update";
View Full Code Here

TOP

Related Classes of com.threerings.io.ObjectInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.