@Override public Object readObject(AbstractHessianInput in, Object[] fields) throws IOException { try { WeakReference<Object> obj = instantiate(); in.addRef(obj); Object value = in.readObject(); obj = null; return new WeakReference<Object>(value); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }
@Override public Object readObject(AbstractHessianInput in, Object[] fields) throws IOException { try { SoftReference<Object> obj = instantiate(); in.addRef(obj); Object value = in.readObject(); obj = null; return new SoftReference<Object>(value); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }
public Object readLengthList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); for (; length > 0; length--) list.add(in.readObject()); return list; }
public Object readLengthList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); for (; length > 0; length--) list.add(in.readObject()); return list; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Vector list = new Vector(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.elements(); } }
@Override public Object readList(AbstractHessianInput in, int length) throws IOException { ArrayList list = new ArrayList(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.iterator(); } }
public Object readLengthList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); for (; length > 0; length--) list.add(in.readObject()); return list; }
public Object readLengthList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); for (; length > 0; length--) list.add(in.readObject()); return list; }
@Override public Object readList(AbstractHessianInput in, int length) throws IOException { ArrayList list = new ArrayList(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.iterator(); } }
public Object readList(AbstractHessianInput in, int length) throws IOException { Vector list = new Vector(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.elements(); } }
@Override public Object readObject(AbstractHessianInput in, String []fieldNames) throws IOException { Map map = createMap(); int ref = in.addRef(map); for (int i = 0; i < fieldNames.length; i++) { String name = fieldNames[i]; map.put(name, in.readObject()); } return map; }
@Override public Object readObject(AbstractHessianInput in, Object []fields) throws IOException { String []fieldNames = (String []) fields; Map<Object,Object> map = createMap(); int ref = in.addRef(map); for (int i = 0; i < fieldNames.length; i++) { String name = fieldNames[i]; map.put(name, in.readObject()); } return map; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Vector list = new Vector(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.elements(); } }
@Override public Object readList(AbstractHessianInput in, int length) throws IOException { ArrayList list = new ArrayList(); in.addRef(list); while (!in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.iterator(); } }
public Object readList(AbstractHessianInput in, int length) throws IOException { Vector list = new Vector(); in.addRef(list); while (!in.isEnd()) list.add(in.readObject()); in.readEnd(); return list.elements(); } }
private static GenericObject readGenericObject(AbstractHessianInput in, GenericObject obj, String[] fieldNames) throws IOException { in.addRef(obj); for (int i = 0; i < fieldNames.length; i++) { String fieldName = fieldNames[i]; Object value = in.readObject(); obj.putField(fieldName, value); } return obj; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); while (!in.isEnd()) list.add(in.readObject()); in.readEnd(); return list; }
public Object readList(AbstractHessianInput in, int length) throws IOException { Collection list = createList(); in.addRef(list); while (! in.isEnd()) list.add(in.readObject()); in.readEnd(); return list; }