Debian Codegraph @

src/org/tukaani/xz/BCJCoder.java

raw symbols SCIP
1 // SPDX-License-Identifier: 0BSD
2 // SPDX-FileCopyrightText: The XZ for Java authors and contributors
3 // SPDX-FileContributor: Lasse Collin <[email protected]>
4
5 package org.tukaani.xz;
6
7 abstract class BCJCoder implements FilterCoder {
8 public static final long X86_FILTER_ID = 0x04;
9 public static final long POWERPC_FILTER_ID = 0x05;
10 public static final long IA64_FILTER_ID = 0x06;
11 public static final long ARM_FILTER_ID = 0x07;
12 public static final long ARMTHUMB_FILTER_ID = 0x08;
13 public static final long SPARC_FILTER_ID = 0x09;
14 public static final long ARM64_FILTER_ID = 0X0A;
15 public static final long RISCV_FILTER_ID = 0X0B;
16
17 public static boolean isBCJFilterID(long filterID) {
18 return filterID >= X86_FILTER_ID && filterID <= RISCV_FILTER_ID;
19 }
20
21 @Override
22 public boolean changesSize() {
23 return false;
24 }
25
26 @Override
27 public boolean nonLastOK() {
28 return true;
29 }
30
31 @Override
32 public boolean lastOK() {
33 return false;
34 }
35 }