public TBase deserialize(TBase t) throws IOException { TBase object; if(t == null) { object = (TBase) ReflectionUtils.newInstance(tClass, null); } else { object = t; object.clear(); } try { object.read(protocol); } catch (TException e) { throw new IOException(e.toString()); } return object; }
public TBase deserialize(TBase t) throws IOException { TBase object; if(t == null) { object = (TBase) ReflectionUtils.newInstance(tClass, null); } else { object = t; object.clear(); } try { object.read(protocol); } catch (TException e) { throw new IOException(e.toString()); } return object; }