Package com.attivio.client.streaming
Interface StreamingObjectSerializer
-
- All Known Implementing Classes:
ObjectOutputSerializer
public interface StreamingObjectSerializer
Interface for streaming multiple objects across a single open input/output stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
deserialize(java.io.InputStream in)
Read a single entry from the stream, returns null if the stream is closed/finished.void
serialize(java.lang.Object obj, java.io.OutputStream out)
Write a single object to the stream.
-
-
-
Method Detail
-
serialize
void serialize(java.lang.Object obj, java.io.OutputStream out) throws java.io.IOException
Write a single object to the stream. It is possible that more calls to serialize will be made with more objects- Throws:
java.io.IOException
-
deserialize
java.lang.Object deserialize(java.io.InputStream in) throws java.io.IOException
Read a single entry from the stream, returns null if the stream is closed/finished. Future calls to deserialize should return the next object, ie this should not 'over-read'.- Throws:
java.io.IOException
-
-