Switch default output stream version
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / ForwardingNormalizedNodeDataInput.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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 java.io.IOException;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.common.QName;
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 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
17
18 abstract class ForwardingNormalizedNodeDataInput extends ForwardingDataInput implements NormalizedNodeDataInput {
19
20     @Override
21     abstract @NonNull NormalizedNodeDataInput delegate() throws IOException;
22
23     @Override
24     public final NormalizedNode<?, ?> readNormalizedNode() throws IOException {
25         return delegate().readNormalizedNode();
26     }
27
28     @Override
29     public final YangInstanceIdentifier readYangInstanceIdentifier() throws IOException {
30         return delegate().readYangInstanceIdentifier();
31     }
32
33     @Override
34     public final QName readQName() throws IOException {
35         return delegate().readQName();
36     }
37
38     @Override
39     public final PathArgument readPathArgument() throws IOException {
40         return delegate().readPathArgument();
41     }
42
43     @Override
44     public final SchemaPath readSchemaPath() throws IOException {
45         return delegate().readSchemaPath();
46     }
47
48     @Override
49     public final NormalizedNodeStreamVersion getVersion() throws IOException {
50         return delegate().getVersion();
51     }
52 }