@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); } }
private Object create(String name) throws IOException { if (name == null) throw new IOException(_enumType.getName() + " expects name."); try { return _valueOf.invoke(null, _enumType, name); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(String name) throws IOException { if (name == null) throw new IOException(_enumType.getName() + " expects name."); try { return _valueOf.invoke(null, _enumType, name); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(String name) throws IOException { if (name == null) throw new IOException(_enumType.getName() + " expects name."); try { return _valueOf.invoke(null, _enumType, name); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(String value) throws IOException { if (value == null) throw new IOException(_cl.getName() + " expects name."); try { return _constructor.newInstance(new Object[] { value }); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(String name) throws IOException { if (name == null) throw new IOException(_enumType.getName() + " expects name."); try { return _valueOf.invoke(null, _enumType, name); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(long initValue) throws IOException { if (initValue == Long.MIN_VALUE) throw new IOException(_cl.getName() + " expects name."); try { return _constructor.newInstance(new Object[] { new Long(initValue) }); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(long initValue) throws IOException { if (initValue == Long.MIN_VALUE) throw new IOException(_cl.getName() + " expects name."); try { return _constructor.newInstance(new Object[] { new Long(initValue) }); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(long initValue) throws IOException { if (initValue == Long.MIN_VALUE) throw new IOException(_cl.getName() + " expects name."); try { return _constructor.newInstance(new Object[] { new Long(initValue) }); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
private Object create(long initValue) throws IOException { if (initValue == Long.MIN_VALUE) throw new IOException(_cl.getName() + " expects name."); try { return _constructor.newInstance(new Object[] { new Long(initValue) }); } catch (Exception e) { throw new IOExceptionWrapper(e); } } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readObject(AbstractHessianInput in, String []fieldNames) throws IOException { try { Object obj = instantiate(); return readObject(in, obj, fieldNames); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(e); } }