public final class ChoiceDispatchSerializer extends Object implements DataObjectSerializerImplementation
Modifier and Type | Method and Description |
---|---|
static ChoiceDispatchSerializer |
from(Class<? extends DataContainer> choiceClass) |
void |
serialize(DataObjectSerializerRegistry reg,
DataObject obj,
BindingStreamEventWriter stream)
Writes stream events for supplied data object to provided stream.
|
public static ChoiceDispatchSerializer from(Class<? extends DataContainer> choiceClass)
public void serialize(DataObjectSerializerRegistry reg, DataObject obj, BindingStreamEventWriter stream) throws IOException
DataObjectSerializerImplementation
DataObjectSerializerRegistry may be used to lookup serializers for other generated classes in order to support writing their events.
serialize
in interface DataObjectSerializerImplementation
IOException
Copyright © 2019 OpenDaylight. All rights reserved.