gpt4 book ai didi

com.koolearn.klibrary.core.filesystem.ZLPhysicalFile.javaFile()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:13:24 27 4
gpt4 key购买 nike

本文整理了Java中com.koolearn.klibrary.core.filesystem.ZLPhysicalFile.javaFile()方法的一些代码示例,展示了ZLPhysicalFile.javaFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLPhysicalFile.javaFile()方法的具体详情如下:
包路径:com.koolearn.klibrary.core.filesystem.ZLPhysicalFile
类名称:ZLPhysicalFile
方法名:javaFile

ZLPhysicalFile.javaFile介绍

暂无

代码示例

代码示例来源:origin: ydcx/KooReader

final String shortName = pFile.getShortName();
final long size = pFile.size();
final long lastModified = pFile.javaFile().lastModified();
for (ZLFile candidate : copy) {
  if (file.equals(candidate)) {
    shortName.equals(pCandidate.getShortName()) &&
    size == pCandidate.size() &&
    lastModified == pCandidate.javaFile().lastModified()
  ) {
    return candidate;

代码示例来源:origin: Jiangzqts/EpubRead

final String shortName = pFile.getShortName();
final long size = pFile.size();
final long lastModified = pFile.javaFile().lastModified();
for (ZLFile candidate : copy) {
  if (file.equals(candidate)) {
    shortName.equals(pCandidate.getShortName()) &&
    size == pCandidate.size() &&
    lastModified == pCandidate.javaFile().lastModified()
  ) {
    return candidate;

代码示例来源:origin: ydcx/KooReader

public String getHash(DbBook book, boolean force) {
  final ZLPhysicalFile file = book.File.getPhysicalFile();
  if (file == null) {
    return ZERO_HASH;
  }
  String hash = null;
  try {
    hash = myDatabase.getHash(book.getId(), file.javaFile().lastModified());
  } catch (BooksDatabase.NotAvailable e) {
    if (!force) {
      return null;
    }
  }
  if (hash == null) {
    final UID uid = BookUtil.createUid(book.File, "SHA-1");
    if (uid == null) {
      return null;
    }
    hash = uid.Id.toLowerCase();
    try {
      myDatabase.setHash(book.getId(), hash);
    } catch (BooksDatabase.NotAvailable e) {
      // ignore
    }
  }
  return hash;
}

代码示例来源:origin: Jiangzqts/EpubRead

public String getHash(DbBook book, boolean force) {
  final ZLPhysicalFile file = book.File.getPhysicalFile();
  if (file == null) {
    return ZERO_HASH;
  }
  String hash = null;
  try {
    hash = myDatabase.getHash(book.getId(), file.javaFile().lastModified());
  } catch (BooksDatabase.NotAvailable e) {
    if (!force) {
      return null;
    }
  }
  if (hash == null) {
    final UID uid = BookUtil.createUid(book.File, "SHA-1");
    if (uid == null) {
      return null;
    }
    hash = uid.Id.toLowerCase();
    try {
      myDatabase.setHash(book.getId(), hash);
    } catch (BooksDatabase.NotAvailable e) {
      // ignore
    }
  }
  return hash;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com