Home | History | Annotate | Download | only in xz
      1 /*
      2  * BCJCoder
      3  *
      4  * Author: Lasse Collin <lasse.collin (at) 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 
     10 package org.tukaani.xz;
     11 
     12 abstract 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 }
     36