ArchiveEntry

data class ArchiveEntry(val name: String, val size: Long, val isDirectory: Boolean, val lastModifiedEpochSeconds: Long? = null, val compressedSize: Long = size, val codec: CodecId = CodecId.STORE, val isEncrypted: Boolean = false, val crc32: Long? = null, val dataOffset: Long = -1L)

One member of a container. name is the raw stored name. Always run it through io.github.yuroyami.kitearchive.security.PathGuard before joining it to an output directory. dataOffset is where the entry's bytes begin in the source (container internal); -1 when not applicable.

Constructors

Link copied to clipboard
constructor(name: String, size: Long, isDirectory: Boolean, lastModifiedEpochSeconds: Long? = null, compressedSize: Long = size, codec: CodecId = CodecId.STORE, isEncrypted: Boolean = false, crc32: Long? = null, dataOffset: Long = -1L)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val crc32: Long?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Long