2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
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.data.api.schema.stream.NormalizedNodeStreamWriter;
17 import org.opendaylight.yangtools.yang.data.impl.schema.ReusableImmutableNormalizedNodeStreamWriter;
18 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
20 abstract class ForwardingNormalizedNodeDataInput extends ForwardingDataInput implements NormalizedNodeDataInput {
23 abstract @NonNull NormalizedNodeDataInput delegate() throws IOException;
26 public final void streamNormalizedNode(final NormalizedNodeStreamWriter writer) throws IOException {
27 delegate().streamNormalizedNode(writer);
31 public final NormalizedNode<?, ?> readNormalizedNode() throws IOException {
32 return delegate().readNormalizedNode();
36 public final NormalizedNode<?, ?> readNormalizedNode(final ReusableImmutableNormalizedNodeStreamWriter writer)
38 return delegate().readNormalizedNode(writer);
42 public final YangInstanceIdentifier readYangInstanceIdentifier() throws IOException {
43 return delegate().readYangInstanceIdentifier();
47 public final QName readQName() throws IOException {
48 return delegate().readQName();
52 public final PathArgument readPathArgument() throws IOException {
53 return delegate().readPathArgument();
57 public final SchemaPath readSchemaPath() throws IOException {
58 return delegate().readSchemaPath();
62 public final NormalizedNodeStreamVersion getVersion() throws IOException {
63 return delegate().getVersion();