public short getType(String name)
   {
      name = String.valueOf(name).toUpperCase();
      
      if (name.equals("HUFFMAN"))
         return HUFFMAN_TYPE; 
      
      if (name.equals("ANS"))
         return ANS_TYPE; 
      
      if (name.equals("FPAQ"))
         return FPAQ_TYPE;
      
      if (name.equals("PAQ"))
         return PAQ_TYPE;
      
      if (name.equals("RANGE"))
         return RANGE_TYPE; 
      
      if (name.equals("CM"))
         return CM_TYPE; 
      
      if (name.equals("NONE"))
         return NONE_TYPE;

      if (name.equals("TPAQ"))
         return TPAQ_TYPE;
      
      throw new IllegalArgumentException("Unsupported entropy codec type: " + name); 
   }