public class ObjectToDataOutputCollectorSerializable extends java.lang.Object implements ObjectToDataOutputCollector
Serializable
object to DataOutput
.
The output contains the byte array length integer followed by the byte array of the serialized object.
Constructor and Description |
---|
ObjectToDataOutputCollectorSerializable() |
Modifier and Type | Method and Description |
---|---|
void |
collect(ObjectToDataOutputCollectorContext context)
Write the received object to
DataOutput . |
public ObjectToDataOutputCollectorSerializable()
public void collect(ObjectToDataOutputCollectorContext context) throws java.io.IOException
ObjectToDataOutputCollector
DataOutput
.collect
in interface ObjectToDataOutputCollector
context
- the object and outputjava.io.IOException
- when the write operation failed