source: josm/trunk/src/org/tukaani/xz/BCJCoder.java@ 14039

Last change on this file since 14039 was 13350, checked in by stoecker, 7 years ago

see #15816 - add XZ support

File size: 870 bytes
Line 
1/*
2 * BCJCoder
3 *
4 * Author: Lasse Collin <lasse.collin@tukaani.org>
5 *
6 * This file has been put into the public domain.
7 * You can do whatever you want with this file.
8 */
9
10package org.tukaani.xz;
11
12abstract class BCJCoder implements FilterCoder {
13 public static final long X86_FILTER_ID = 0x04;
14 public static final long POWERPC_FILTER_ID = 0x05;
15 public static final long IA64_FILTER_ID = 0x06;
16 public static final long ARM_FILTER_ID = 0x07;
17 public static final long ARMTHUMB_FILTER_ID = 0x08;
18 public static final long SPARC_FILTER_ID = 0x09;
19
20 public static boolean isBCJFilterID(long filterID) {
21 return filterID >= 0x04 && filterID <= 0x09;
22 }
23
24 public boolean changesSize() {
25 return false;
26 }
27
28 public boolean nonLastOK() {
29 return true;
30 }
31
32 public boolean lastOK() {
33 return false;
34 }
35}
Note: See TracBrowser for help on using the repository browser.