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

com.credibledoc.iso8583packer.bitmap.BitmapPacker Maven / Gradle / Ivy

There is a newer version: 1.0.51
Show newest version
package com.credibledoc.iso8583packer.bitmap;

import com.credibledoc.iso8583packer.message.MsgValue;

import java.util.BitSet;

/**
 * Packs and unpacks BitSet, see the Wikipedia description.
 * 

* Actual documentation and examples * bitmap-packer.md. * * @author Kyrylo Semenko */ public interface BitmapPacker { /** * @param bitSet the {@link BitSet} for packing * @return packed {@link BitSet} */ byte[] pack (BitSet bitSet); /** * @param msgValue where the unpacked {@link BitSet} will be stored * @param bytes the data source * @param offset starting offset within the bytes * @return number of consumed bytes */ int unpack(MsgValue msgValue, byte[] bytes, int offset); /** * @return The number of the {@link BitSet} bytes in a packed state without the children of the {@link BitmapPacker}. */ int getPackedBytesLength(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy