public class ObjectToDataOutputCollectorSerializable extends 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 IOException
ObjectToDataOutputCollector
DataOutput
.collect
in interface ObjectToDataOutputCollector
context
- the object and outputIOException
- when the write operation failed