private Portable read(BufferObjectDataInput in, int factoryId, int classId) throws IOException { int version = in.readInt(); Portable portable = createNewPortableInstance(factoryId, classId); int portableVersion = findPortableVersion(factoryId, classId, portable); DefaultPortableReader reader = createReader(in, factoryId, classId, version, portableVersion); portable.readPortable(reader); reader.end(); return portable; }
private Portable read(BufferObjectDataInput in, int factoryId, int classId) throws IOException { int version = in.readInt(); Portable portable = createNewPortableInstance(factoryId, classId); int portableVersion = findPortableVersion(factoryId, classId, portable); DefaultPortableReader reader = createReader(in, factoryId, classId, version, portableVersion); portable.readPortable(reader); reader.end(); return portable; }