Example #1
0
 @Override
 public void write(DataOutput out) throws IOException {
   /*if(!(out instanceof OutputStream)){
   	throw new RuntimeException("dataoutput ist doof"+out.getClass().getName());
   }*/
   tree.write(out);
 }
Example #2
0
  @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");
    }*/

  }
Example #3
0
 public PactRTree() {
   this.tree = new RTree();
   tree.init(null);
   i = 0;
 }