public class FileSerializer extends com.esotericsoftware.kryo.Serializer<File>
Serializer
for serializing File payloads.
It serializes the file path and creates a new File instance to preserve the original path.
File does not preserve the absolute otherwise as prefixLength
is declared transient.Constructor and Description |
---|
FileSerializer() |
Modifier and Type | Method and Description |
---|---|
File |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<File> type) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
File file) |