Mechanical code cleanup (sal-clustering-commons)
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / NormalizedNodeDataInput.java
1 /*
2  * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
9
10 import com.google.common.annotations.Beta;
11 import java.io.DataInput;
12 import java.io.IOException;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
15 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
16
17 /**
18  * Interface for reading {@link NormalizedNode}s, {@link YangInstanceIdentifier}s and {@link PathArgument}s.
19  */
20 @Beta
21 public interface NormalizedNodeDataInput extends DataInput {
22     /**
23      * Read a normalized node from the reader.
24      *
25      * @return Next node from the stream, or null if end of stream has been reached.
26      * @throws IOException if an error occurs
27      * @throws IllegalStateException if the dictionary has been detached
28      */
29     NormalizedNode<?, ?> readNormalizedNode() throws IOException;
30
31     YangInstanceIdentifier readYangInstanceIdentifier() throws IOException;
32
33     PathArgument readPathArgument() throws IOException;
34 }