@Override public void write(DataOutput out) throws IOException { /*if(!(out instanceof OutputStream)){ throw new RuntimeException("dataoutput ist doof"+out.getClass().getName()); }*/ tree.write(out); }
@Override public void read(DataInput in) throws IOException { tree.read(in); i++; /*if(!(in instanceof InputStream)){ throw new RuntimeException("datainput ist doof "+in.getClass().getName()); } ObjectInputStream input = new ObjectInputStream((InputStream)in); try { tree = (RTree)input.readObject(); } catch (ClassNotFoundException e) { throw new RuntimeException("Could not read PactRtree input"); }*/ }
public PactRTree() { this.tree = new RTree(); tree.init(null); i = 0; }