Class FileSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer<File>
org.springframework.integration.codec.kryo.FileSerializer
A custom Kryo
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.- Since:
- 4.2
- Author:
- David Turanski, Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.esotericsoftware.kryo.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
FileSerializer
public FileSerializer()
-
-
Method Details
-
write
-
read
-