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

com.xxdb.compression.Decoder Maven / Gradle / Ivy

There is a newer version: 3.00.2.2
Show newest version
package com.xxdb.compression;

import java.io.DataInput;
import java.io.IOException;

import com.xxdb.data.Entity;
import com.xxdb.io.ExtendedDataInput;

public interface Decoder {
    /**
     * This method takes in an input stream with many blocks and decompresses them all into a byte array
     * 

* Form of input: * 1. 4 bytes - block size * 2. contents * 3. 4 bytes - block size * 4. contents * ... * * @param in input stream * @param length input length, continue from current position of input stream * @param unitLength The length of an element in bytes. It is zero if the element is a string object. * @return */ ExtendedDataInput decompress(DataInput in, int length, int unitLength, int elementCount, boolean isLittleEndian, int extra, int type, short scale) throws IOException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy