gpt4 book ai didi

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

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

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

ZLFile.getPath介绍

暂无

代码示例

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

@Override
  public String getId() {
    return File.getPath();
  }
}

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

@Override
  public String getId() {
    return File.getPath();
  }
}

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

@Override
public String getPath() {
  return myParent.getPath() + ":" + myName;
}

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

@Override
public String getURI() {
  return "cover:" + File.getPath();
}

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

@Override
public String getId() {
  return File.getPath();
}

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

public String getURI() {
  String result = SCHEME + "://" + myFile.getPath() + "\000" + myEncoding + "\000" + myOffsets.length;
  for (int offset : myOffsets) {
    result += "\000" + offset;
  }
  for (int length : myLengths) {
    result += "\000" + length;
  }
  return result;
}

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

@Override
public String toString() {
  return "ZLFile [" + getPath() + "]";
}

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

@Override
public String getPath() {
  return File.getPath();
}

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

@Override
public String getId() {
  return File.getPath();
}

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

@Override
public boolean equals(Object o) {
  if (o == this) {
    return true;
  }
  if (!(o instanceof ZLFile)) {
    return false;
  }
  return getPath().equals(((ZLFile) o).getPath());
}

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

private String entryName(ZLFile file) {
  final String path = file.getPath();
  final int index = path.indexOf(":");
  return index == -1 ? null : path.substring(index + 1);
}

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

private String entryName(ZLFile file) {
  final String path = file.getPath();
  final int index = path.indexOf(":");
  return index == -1 ? null : path.substring(index + 1);
}

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

public void setCached(boolean cached) {
    myIsCached = cached;
    if (cached) {
      ourCachedFiles.put(getPath(), this);
    } else {
      ourCachedFiles.remove(getPath());
      if (0 != (myArchiveType & ArchiveType.ZIP)) {
        ZLZipEntryFile.removeFromCache(this);
      }
    }
  }
}

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

public BookReadingException(IOException e, ZLFile file) {
    super(getResourceText(
      e instanceof ZipException ? "errorReadingZip" : "errorReadingFile",
      file.getPath()
    ), e);
    File = file;
  }
}

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

static void removeFromCache(ZLFile file) {
  LogUtil.i21("" + file.getPath());
  ourZipFileMap.remove(file);
}

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

@Override
public Pair<String,String> getTreeTitle() {
  return new Pair(myFile.getPath(), null);
}

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

@Override
public Book getBook() {
  if (myBook == null) {
    myBook = Collection.getBookByFile(myFile.getPath());
    if (myBook == null) {
      myBook = NULL_BOOK;
    }
  }
  return myBook instanceof Book ? (Book)myBook : null;
}

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

@Override
public Book getBook() {
  if (myBook == null) {
    myBook = Collection.getBookByFile(myFile.getPath());
    if (myBook == null) {
      myBook = NULL_BOOK;
    }
  }
  return myBook instanceof Book ? (Book)myBook : null;
}

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

public ZLFileImage(ZLFile file, String encoding, int[] offsets, int[] lengths, FileEncryptionInfo encryptionInfo) {
  LogUtil.i16("image:" + file.getPath());
  LogUtil.i16("image:" + file.getUrl());
  LogUtil.i16("image:" + file.getLongName());
  LogUtil.i16("image:" + file.getShortName());
  myFile = file;
  myEncoding = encoding != null ? encoding : ENCODING_NONE;
  myOffsets = offsets;
  myLengths = lengths;
  myEncryptionInfo = encryptionInfo;
}

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

public ZLFileImage(ZLFile file, String encoding, int[] offsets, int[] lengths, FileEncryptionInfo encryptionInfo) {
  LogUtil.i16("image:" + file.getPath());
  LogUtil.i16("image:" + file.getUrl());
  LogUtil.i16("image:" + file.getLongName());
  LogUtil.i16("image:" + file.getShortName());
  myFile = file;
  myEncoding = encoding != null ? encoding : ENCODING_NONE;
  myOffsets = offsets;
  myLengths = lengths;
  myEncryptionInfo = encryptionInfo;
}

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