예제 #1
0
파일: PactRTree.java 프로젝트: beflew/rtree
 @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
파일: PactRTree.java 프로젝트: beflew/rtree
  @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
파일: PactRTree.java 프로젝트: beflew/rtree
 public PactRTree() {
   this.tree = new RTree();
   tree.init(null);
   i = 0;
 }