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

software.coley.llzip.format.compression.Decompressor Maven / Gradle / Ivy

package software.coley.llzip.format.compression;

import software.coley.llzip.format.model.LocalFileHeader;
import software.coley.llzip.util.ByteData;

import java.io.IOException;

/**
 * Outlines decompression of {@link LocalFileHeader#getFileData()}.
 *
 * @author Matt Coley
 */
public interface Decompressor {
	/**
	 * @param header
	 * 		Header containing the bytes, for any context needed.
	 * @param bytes
	 * 		Bytes to decompress.
	 *
	 * @return Decompressed bytes.
	 *
	 * @throws IOException
	 * 		Decompression failure.
	 */
	ByteData decompress(LocalFileHeader header, ByteData bytes) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy