de.jarnbjo.jsnappy.FormatViolationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bytecompressor-jsnappy_2.10 Show documentation
Show all versions of bytecompressor-jsnappy_2.10 Show documentation
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