Interface OfflineIterable.Serializer<A, B extends A>
- Enclosing class:
OfflineIterable<T, U extends T>
public static interface OfflineIterable.Serializer<A, B extends A>
Determines a strategy to serialize and deserialize elements.
- Since:
- 0.9.2
- Author:
- Sebastiano Vigna
-
Method Summary
-
Method Details
-
write
Writes out an element.- Parameters:
x- the element to be written.dos- the stream where the element should be written.- Throws:
IOException- if an exception occurs while writing.
-
read
Reads an element.- Parameters:
dis- the stream whence the element should be read.x- the object where the element will be read.- Throws:
IOException- if an exception occurs while reading.
-