gpt4 book ai didi

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

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

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

ZLFile.isArchive介绍

暂无

代码示例

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

public final List<ZLFile> children() {
  if (exists()) {
    if (isDirectory()) {
      return directoryEntries();
    } else if (isArchive()) {
      return ZLArchiveEntryFile.archiveEntries(this);
    }
  }
  return Collections.emptyList();
}

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

public final List<ZLFile> children() {
  if (exists()) {
    if (isDirectory()) {
      return directoryEntries();
    } else if (isArchive()) {
      return ZLArchiveEntryFile.archiveEntries(this);
    }
  }
  return Collections.emptyList();
}

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

@Override
public boolean containsBook(Book book) {
  if (book == null) {
    return false;
  }
  if (myFile.isDirectory()) {
    String prefix = myFile.getPath();
    if (!prefix.endsWith("/")) {
      prefix += "/";
    }
    return book.getPath().startsWith(prefix);
  } else if (myFile.isArchive()) {
    return book.getPath().startsWith(myFile.getPath() + ":");
  } else {
    return book.equals(getBook());
  }
}

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

@Override
public boolean containsBook(Book book) {
  if (book == null) {
    return false;
  }
  if (myFile.isDirectory()) {
    String prefix = myFile.getPath();
    if (!prefix.endsWith("/")) {
      prefix += "/";
    }
    return book.getPath().startsWith(prefix);
  } else if (myFile.isArchive()) {
    return book.getPath().startsWith(myFile.getPath() + ":");
  } else {
    return book.equals(getBook());
  }
}

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

@Override
public void waitForOpening() {
  if (getBook() != null) {
    return;
  }
  final TreeSet<ZLFile> set = new TreeSet<ZLFile>(ourFileComparator);
  for (ZLFile file : myFile.children()) {
    if (file.isDirectory() || file.isArchive() ||
      Collection.getBookByFile(file.getPath()) != null) {
      set.add(file);
    }
  }
  clear();
  for (ZLFile file : set) {
    new FileTree(this, file);
  }
}

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

@Override
public void waitForOpening() {
  if (getBook() != null) {
    return;
  }
  final TreeSet<ZLFile> set = new TreeSet<ZLFile>(ourFileComparator);
  for (ZLFile file : myFile.children()) {
    if (file.isDirectory() || file.isArchive() ||
      Collection.getBookByFile(file.getPath()) != null) {
      set.add(file);
    }
  }
  clear();
  for (ZLFile file : set) {
    new FileTree(this, file);
  }
}

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

if (book != null) {
  newBooks.add(book);
} else if (file.isArchive()) {
  for (ZLFile entry : fileInfos.archiveEntries(file)) {
    collectBooks(

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

if (book != null) {
  newBooks.add(book);
} else if (file.isArchive()) {
  for (ZLFile entry : fileInfos.archiveEntries(file)) {
    collectBooks(

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

private Book createBookForFile(ZLFile file) {
  if (file == null) {
    return null;
  }
  Book book = myKooReaderApp.Collection.getBookByFile(file.getPath());
  if (book != null) {
    return book;
  }
  if (file.isArchive()) {
    for (ZLFile child : file.children()) {
      book = myKooReaderApp.Collection.getBookByFile(child.getPath());
      if (book != null) {
        return book;
      }
    }
  }
  return null;
}

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

private Book createBookForFile(ZLFile file) {
  if (file == null) {
    return null;
  }
  Book book = myKooReaderApp.Collection.getBookByFile(file.getPath());
  if (book != null) {
    return book;
  }
  if (file.isArchive()) {
    for (ZLFile child : file.children()) {
      book = myKooReaderApp.Collection.getBookByFile(child.getPath());
      if (book != null) {
        return book;
      }
    }
  }
  return null;
}

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

if (file.isArchive()) {
  return R.drawable.ic_list_library_zip;
} else if (file.isDirectory() && file.isReadable()) {

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

if (file.isArchive()) {

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