@Override
 public synchronized void readUids(Book book) throws BookReadingException {
   readUidsNative(book);
   if (book.uids().isEmpty()) {
     book.addUid(BookUtil.createSHA256Uid(book.File));
   }
 }
 public String getBookHash() {
   final UID uid = BookUtil.createSHA256Uid(getReader().Model.Book.File);
   return uid != null ? uid.Id : null;
 }
示例#3
0
 @Override
 public void readUids(Book book) {
   if (book.uids().isEmpty()) {
     book.addUid(BookUtil.createUid(book.File, "SHA-256"));
   }
 }
示例#4
0
 @Override
 public void readUids(Book book) throws BookReadingException {
   if (book.uids().isEmpty()) {
     book.addUid(BookUtil.createUid(book.File, "SHA-256"));
   }
 }