public Object objectFromStream(DataInput in) throws Exception { return Util.objectFromStream(in); } }
public Object objectFromStream(DataInput in) throws Exception { return Util.objectFromStream(in); }
public Object objectFromStream(DataInput in) throws Exception { return Util.objectFromStream(in); } }
public static <T extends Object> T objectFromStream(DataInput in) throws Exception { return objectFromStream(in, null); }
protected void readTypes(DataInput in) throws Exception { int types_len=in.readByte(); if(types_len > 0) { types=new Class<?>[types_len]; for(int i=0; i < types_len; i++) types[i]=Util.objectFromStream(in); } }
public Object objectFromStream(DataInput in) throws Exception { byte type=in.readByte(); if(type == NULL) return null; if(type == VALUE) { long expiration_time=in.readLong(); Object obj=Util.objectFromStream(in); return new Cache.Value(obj, expiration_time); } else return Util.objectFromStream(in); }
public Object objectFromStream(DataInput in) throws Exception { byte type=in.readByte(); if(type == NULL) return null; if(type == VALUE) { long expiration_time=in.readLong(); Object obj=Util.objectFromStream(in); return new Cache.Value(obj, expiration_time); } return Util.objectFromStream(in); } }
protected void readMethod(DataInput in) throws Exception { if(in.readByte() == 1) { Class[] parametertypes=Util.objectFromStream(in); Class declaringclass=Util.objectFromStream(in); try { method=declaringclass.getDeclaredMethod(method_name, parametertypes); } catch(NoSuchMethodException e) { throw new IOException(e.toString()); } } }
protected void readArgs(DataInput in, Marshaller marshaller) throws Exception { int args_len=in.readByte(); if(args_len == 0) return; args=new Object[args_len]; for(int i=0; i < args_len; i++) args[i]=marshaller != null? marshaller.objectFromStream(in) : Util.objectFromStream(in); }
public void readFrom(DataInput in) throws Exception { int size=in.readInt(); for(int i=0; i < size; i++) { String key=Bits.readString(in); Object value=Util.objectFromStream(in); if(key == null) continue; values.put(key, value); } }
public void setState(InputStream input) throws Exception { java.util.List<Node> copy=(List<Node>)Util.objectFromStream(new DataInputStream(input)); synchronized(nodes) { nodes.clear(); nodes.addAll(copy); } repaint(); }
public void setState(InputStream input) throws Exception { canvas.setState(Util.objectFromStream(new DataInputStream(input))); }
public void setState(InputStream istream) throws Exception { integrate((HashMap<String, Float>)Util.objectFromStream(new DataInputStream(istream))); }
public void setState(InputStream istream) throws Exception { Object obj=Util.objectFromStream(new DataInputStream(istream)); root=(Node)((Node)obj).clone(); notifyAllNodesCreated(root); }
protected static Object replyFromBuffer(final byte[] buf, int offset, int length, Marshaller marshaller) throws Exception { ByteArrayDataInputStream in=new ByteArrayDataInputStream(buf, offset, length); return marshaller != null? marshaller.objectFromStream(in) : Util.objectFromStream(in); }
protected void readTypes(DataInput in) throws Exception { int types_len=in.readByte(); if(types_len > 0) { types=new Class<?>[types_len]; for(int i=0; i < types_len; i++) types[i]=Util.objectFromStream(in); } }
public Object objectFromStream(DataInput in) throws Exception { byte type=in.readByte(); if(type == NULL) return null; if(type == VALUE) { long expiration_time=in.readLong(); Object obj=Util.objectFromStream(in); return new Cache.Value(obj, expiration_time); } else return Util.objectFromStream(in); }
protected void readMethod(DataInput in) throws Exception { if(in.readByte() == 1) { Class[] parametertypes=Util.objectFromStream(in); Class declaringclass=Util.objectFromStream(in); try { method=declaringclass.getDeclaredMethod(method_name, parametertypes); } catch(NoSuchMethodException e) { throw new IOException(e.toString()); } } }
public void readFrom(DataInput in) throws Exception { int size=in.readInt(); for(int i=0; i < size; i++) { String key=Bits.readString(in); Object value=Util.objectFromStream(in); if(key == null) continue; values.put(key, value); } }
protected void readArgs(DataInput in, Marshaller marshaller) throws Exception { int args_len=in.readByte(); if(args_len == 0) return; args=new Object[args_len]; for(int i=0; i < args_len; i++) args[i]=marshaller != null? marshaller.objectFromStream(in) : Util.objectFromStream(in); }