Ejemplo n.º 1
0
 public int getPriority() {
   if (type == null) return 0;
   DocumentFormat df = DocumentFormat.byMimeType(type);
   if (rel != null
       && rel.indexOf("acquisition") < 0
       && df != DocumentFormat.FB2
       && df != DocumentFormat.EPUB
       && df != DocumentFormat.RTF
       && df != DocumentFormat.DOC) return 0;
   return df != null ? df.getPriority() : 0;
 }