ZipFile
Opens the given channel for reading, assuming "UTF8" for file names.
Since
1.13
Parameters
the archive.
Throws
if an error occurs while reading the file.
Opens the given channel for reading, assuming the specified encoding for file names.
Since
1.13
Parameters
the archive.
the encoding to use for file names, use null for the platform's default encoding
Throws
if an error occurs while reading the file.
Opens the given channel for reading, assuming the specified encoding for file names.
Since
1.13
Parameters
the archive.
name of the archive, used for error messages only.
the encoding to use for file names, use null for the platform's default encoding
whether to use InfoZIP Unicode Extra Fields (if present) to set the file names.
Throws
if an error occurs while reading the file.
Opens the given channel for reading, assuming the specified encoding for file names.
By default the central directory record and all local file headers of the archive will be read immediately which may take a considerable amount of time when the archive is big. The ignoreLocalFileHeader parameter can be set to true which restricts parsing to the central directory. Unfortunately the local file header may contain information not present inside of the central directory which will not be available when the argument is set to true. This includes the content of the Unicode extra field, so setting
ignoreLocalFileHeader to true means useUnicodeExtraFields will be ignored effectively.
Since
1.19
Parameters
the archive.
name of the archive, used for error messages only.
the encoding to use for file names, use null for the platform's default encoding
whether to use InfoZIP Unicode Extra Fields (if present) to set the file names.
whether to ignore information stored inside the local file header (see the notes in this method's javadoc)
Throws
if an error occurs while reading the file.