ZipArchiveEntry

constructor(inputFile: File, entryName: String)

Creates a new ZIP entry taking some information from the given file and using the provided name.

The name will be adjusted to end with a forward slash "/" if the file is a directory. If the file is not a directory a potential trailing forward slash will be stripped from the entry name.

Parameters

inputFile

file to create the entry from

entryName

name of the entry


constructor(entry: ZipEntry)
constructor(entry: ZipArchiveEntry)

Creates a new ZIP entry with fields taken from the specified ZIP entry.

Assumes the entry represents a directory if and only if the name ends with a forward slash "/".

Parameters

entry

the entry to get fields from

Throws

on error


constructor(name: String)

Creates a new ZIP entry with the specified name.

Assumes the entry represents a directory if and only if the name ends with a forward slash "/".

Parameters

name

the name of the entry