示例#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);
 }
示例#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");
    }*/

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