X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FLithiumNormalizedNodeInputStreamReader.java;fp=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FLithiumNormalizedNodeInputStreamReader.java;h=0000000000000000000000000000000000000000;hp=871f371aa73129ef1be8a2041c62bec01c348d8b;hb=30e167cac18381b1cadc6eb666faabb2f509ee29;hpb=4bb3cc5aa0ced95932232c2b1b541f38c758b532 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java deleted file mode 100755 index 871f371aa7..0000000000 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.cluster.datastore.node.utils.stream; - -import com.google.common.base.Strings; -import java.io.DataInput; -import java.io.IOException; -import org.opendaylight.controller.cluster.datastore.node.utils.QNameFactory; -import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier; -import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; - -/** - * Lithium (or Oxygen really) specialization of AbstractLithiumDataInput. - */ -final class LithiumNormalizedNodeInputStreamReader extends AbstractLithiumDataInput { - LithiumNormalizedNodeInputStreamReader(final DataInput input) { - super(input); - } - - @Override - public NormalizedNodeStreamVersion getVersion() { - return NormalizedNodeStreamVersion.LITHIUM; - } - - @Override - public QName readQName() throws IOException { - // Read in the same sequence of writing - String localName = readCodedString(); - String namespace = readCodedString(); - String revision = Strings.emptyToNull(readCodedString()); - - return QNameFactory.create(localName, namespace, revision); - } - - @Override - AugmentationIdentifier readAugmentationIdentifier() throws IOException { - return defaultReadAugmentationIdentifier(); - } - - @Override - NodeIdentifier readNodeIdentifier() throws IOException { - return new NodeIdentifier(readQName()); - } -}