1 package com.github.davidmoten.rtree; 2 3 import java.io.IOException; 4 import java.io.InputStream; 5 import java.io.OutputStream; 6 7 import com.github.davidmoten.rtree.geometry.Geometry; 8 9 public interface Serializer<T, S extends Geometry> { 10 11 void write(RTree<T, S> tree, OutputStream os) throws IOException; 12 13 RTree<T, S> read(InputStream is, long sizeBytes, InternalStructure structure) 14 throws IOException; 15 16 }