UnicodeCommentExtraField

Info-ZIP Unicode Comment Extra Field (0x6375):

Stores the UTF-8 version of the file comment as stored in the central directory header.

See also

Constructors

Link copied to clipboard
constructor()
constructor(comment: String, bytes: Array<Byte>)
Assemble as unicode comment extension from the comment given as text as well as the bytes actually written to the archive.
constructor(text: String, bytes: Array<Byte>, off: Int, len: Int)
Assemble as unicode comment extension from the name given as text as well as the encoded bytes actually written to the archive.

Properties

Link copied to clipboard
Size of an extra field field header (id + length).
Link copied to clipboard
open var nameCRC32: Long
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
The actual data to put into central directory - without Header-ID or length specifier.
Link copied to clipboard
Length of the extra field in the central directory - without Header-ID or length specifier.
Link copied to clipboard
open fun getHeaderId(): ZipShort
The Header-ID.
Link copied to clipboard
The actual data to put into local file data - without Header-ID or length specifier.
Link copied to clipboard
Length of the extra field in the local file data - without Header-ID or length specifier.
Link copied to clipboard
open fun parseFromCentralDirectoryData(buffer: Array<Byte>, offset: Int, length: Int)
Doesn't do anything special since this class always uses the same data in central directory and local file data.
abstract fun parseFromCentralDirectoryData(buffer: Array<Byte>, offset: Int, length: Int)
Populate data from this array as if it was in central directory data.
Link copied to clipboard
open fun parseFromLocalFileData(buffer: Array<Byte>, offset: Int, length: Int)
abstract fun parseFromLocalFileData(buffer: Array<Byte>, offset: Int, length: Int)
Populate data from this array as if it was in local file data.