public class SerializerKryo<T,S extends Geometry> extends Object implements Serializer<T,S>
| Constructor and Description |
|---|
SerializerKryo(rx.functions.Func1<? super T,byte[]> serializer,
rx.functions.Func1<byte[],? extends T> deserializer,
rx.functions.Func0<com.esotericsoftware.kryo.Kryo> kryoFactory) |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
create(rx.functions.Func1<? super T,byte[]> serializer,
rx.functions.Func1<byte[],? extends T> deserializer,
rx.functions.Func0<com.esotericsoftware.kryo.Kryo> kryoFactory) |
RTree<T,S> |
read(InputStream is,
long sizeBytes,
InternalStructure structure) |
void |
write(RTree<T,S> tree,
OutputStream os) |
public void write(RTree<T,S> tree, OutputStream os) throws IOException
write in interface Serializer<T,S extends Geometry>IOExceptionpublic RTree<T,S> read(InputStream is, long sizeBytes, InternalStructure structure) throws IOException
read in interface Serializer<T,S extends Geometry>IOExceptionpublic static <T,S extends Geometry> Serializer<T,S> create(rx.functions.Func1<? super T,byte[]> serializer, rx.functions.Func1<byte[],? extends T> deserializer, rx.functions.Func0<com.esotericsoftware.kryo.Kryo> kryoFactory)
Copyright © 2013–2023. All rights reserved.