类 FilePartItem

java.lang.Object
dev.utils.common.file.FilePartItem

public class FilePartItem extends Object
detail: 文件分片信息 Item
作者:
Ttt
  • 字段详细资料

    • partIndex

      public final int partIndex
    • partCount

      public final int partCount
    • partByteLength

      public final long partByteLength
    • fileByteLength

      public final long fileByteLength
    • start

      public final long start
    • end

      public final long end
  • 构造器详细资料

    • FilePartItem

      public FilePartItem(int partIndex, int partCount, long partByteLength, long fileByteLength, long start, long end)
  • 方法详细资料

    • isFirstItem

      public boolean isFirstItem()
      判断是否 First Item
      返回:
      true yes, false no
    • isLastItem

      public boolean isLastItem()
      判断是否 Last Item
      返回:
      true yes, false no
    • existsPart

      public boolean existsPart()
      是否存在分片
      返回:
      true yes, false no
    • isOnlyOne

      public boolean isOnlyOne()
      是否只有一个分片
      返回:
      true yes, false no
    • getPartName

      public String getPartName(String fileName)
      获取分片文件名 ( 后缀索引拼接 )
      参数:
      fileName - 原始文件名
      返回:
      分片文件名