/* * Copyright (c) 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; final class TokenTypes { private TokenTypes() { throw new UnsupportedOperationException(); } static final byte SIGNATURE_MARKER = (byte) 0xab; /** * Original stream version. Uses a per-stream dictionary for strings. QNames are serialized as three strings. */ static final short LITHIUM_VERSION = 1; /** * Revised stream version. Unlike {@link #LITHIUM_VERSION}, QNames and QNameModules are using a per-stream * dictionary, too. */ static final short NEON_SR2_VERSION = 2; // Tokens supported in NEON_SR2_VERSION static final byte IS_QNAME_CODE = 4; static final byte IS_QNAME_VALUE = 5; static final byte IS_AUGMENT_CODE = 6; static final byte IS_AUGMENT_VALUE = 7; static final byte IS_MODULE_CODE = 8; static final byte IS_MODULE_VALUE = 9; }