2 * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.mdsal.binding2.spec.runtime;
11 import com.google.common.annotations.Beta;
12 import java.io.IOException;
13 import org.opendaylight.mdsal.binding2.spec.TreeNode;
16 * A serializer which writes TreeNode to supplied stream event writer.
19 public interface TreeNodeSerializer {
22 * Writes stream events representing object to supplied stream
25 * Source of stream events
27 * Stream to which events should be written.
29 void serialize(TreeNode obj, BindingStreamEventWriter stream) throws IOException;