2015-07-28 20:36:41 +08:00
|
|
|
/*
|
|
|
|
|
* BCJCoder
|
|
|
|
|
*
|
|
|
|
|
* Author: Lasse Collin <lasse.collin@tukaani.org>
|
|
|
|
|
*
|
|
|
|
|
* This file has been put into the public domain.
|
|
|
|
|
* You can do whatever you want with this file.
|
|
|
|
|
*/
|
|
|
|
|
package org.tukaani.xz;
|
|
|
|
|
|
|
|
|
|
abstract class BCJCoder implements FilterCoder {
|
2015-11-17 12:51:04 +08:00
|
|
|
|
2015-07-28 20:36:41 +08:00
|
|
|
public static final long X86_FILTER_ID = 0x04;
|
|
|
|
|
public static final long POWERPC_FILTER_ID = 0x05;
|
|
|
|
|
public static final long IA64_FILTER_ID = 0x06;
|
|
|
|
|
public static final long SPARC_FILTER_ID = 0x09;
|
|
|
|
|
|
|
|
|
|
public static boolean isBCJFilterID(long filterID) {
|
|
|
|
|
return filterID >= 0x04 && filterID <= 0x09;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-01 11:03:09 +08:00
|
|
|
@Override
|
2015-07-28 20:36:41 +08:00
|
|
|
public boolean changesSize() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-01 11:03:09 +08:00
|
|
|
@Override
|
2015-07-28 20:36:41 +08:00
|
|
|
public boolean nonLastOK() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-01 11:03:09 +08:00
|
|
|
@Override
|
2015-07-28 20:36:41 +08:00
|
|
|
public boolean lastOK() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|