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

de.jarnbjo.jsnappy.FormatViolationException Maven / Gradle / Ivy

Go to download

Java impmenentation of compression algorithm Snappy from Google. This is a Avast a.s. fork of http://code.google.com/p/jsnappy/ , it adds bytecompressor layer compatibility.

The newest version!
package de.jarnbjo.jsnappy;

/**
 * Exception thrown by the decompressor if it encounters illegal input data. 
 * 
 * @author Tor-Einar Jarnbjo
 * @since 1.0
 */
public class FormatViolationException extends IllegalArgumentException {

	private static final long serialVersionUID = 3430433676859618390L;
	
	private int offset;
	
	public FormatViolationException(String message) {
		super(message);
	}
	
	public FormatViolationException(String message, int offset) {
		this.offset = offset;
	}
	
	public int getOffset() {
		return offset;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy