All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.whitbeck.rdbparser.Aux Maven / Gradle / Ivy

/**
 * Copyright (c) 2015-2018 John Whitbeck. All rights reserved.
 *
 * 

The use and distribution terms for this software are covered by the * Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) * which can be found in the file al-v20.txt at the root of this distribution. * By using this software in any fashion, you are agreeing to be bound by * the terms of this license. * *

You must not remove this notice, or any other, from this software. */ package net.whitbeck.rdbparser; /** *

Auxiliary entries contain a key value pair to holds metadata about the RDB file. * *

Introduced in RDB version 7. * * @author John Whitbeck */ public final class Aux implements Entry { private final byte[] key; private final byte[] value; Aux(byte[] key, byte[] value) { this.key = key; this.value = value; } @Override public EntryType getType() { return EntryType.AUX; } /** * Returns the key * * @return key */ public byte[] getKey() { return key; } /** * Returns the value * * @return value */ public byte[] getValue() { return value; } @Override public String toString() { return String.format("%s (k: %s, v: %s)", EntryType.AUX, StringUtils.getPrintableString(key), StringUtils.getPrintableString(value)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy