io.github.mmm.binary.codec.Decoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-binary Show documentation
Show all versions of mmm-binary Show documentation
Small and self-contained module to represent and encode binary data.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.binary.codec;
/**
* Stateful class to {@link Base#decode(String) decode}.
*
* @since 1.0.0
*/
abstract class Decoder {
protected final byte[] input;
protected final BaseFormat format;
protected Decoder(BaseFormat format, byte[] encodedData, int dataLength) {
super();
this.input = encodedData;
this.format = format;
}
protected abstract byte[] decode();
}