@Immutable public class ZipDriver extends AbstractZipDriver<ZipDriverEntry>
DateTimeConverter.ZIP
.
This configuration pretty much constrains the applicability of this driver
to North American and Western European countries.
However, this driver generally provides best interoperability with third
party tools like the Windows Explorer, WinZip, 7-Zip etc.
To some extent this applies even outside these countries.
Therefore, while you should use this driver to access plain old ZIP files,
you should not use it for custom application file formats - use the
JarDriver
instead in this case.
This driver does not check the CRC value of any entries in existing
archives - use CheckedZipDriver
instead.
Sub-classes must be thread-safe and should be immutable!
Modifier and Type | Field and Description |
---|---|
static Charset |
ZIP_CHARSET
The character set for entry names and comments in "traditional"
ZIP files, which is
"IBM437" . |
Constructor and Description |
---|
ZipDriver() |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Returns the character set to use for encoding character based meta data
such as entry names or file comments to binary data when writing
an archive file.
|
ZipDriverEntry |
newEntry(String name)
Returns a new ZIP driver entry with the given
name . |
ZipDriverEntry |
newEntry(String name,
ZipEntry template)
Returns a new ZIP driver entry with the given
name and all
other properties copied from the given template. |
check, decorate, fileSystemUri, getKeyManagerMap, getLevel, getMethod, getOverheadSize, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newEntry, newInput, newOutput, newZipInput, rdc, sink, zipCryptoParameters
checkEncodable, isArchiveDriver, newController, newEntry, newInput, newOutput, normalize, source, toString
public static final Charset ZIP_CHARSET
"IBM437"
.public Charset getCharset()
This is an immutable property - multiple calls must return the same object.
getCharset
in interface ZipCharsetParameters
getCharset
in class FsArchiveDriver<ZipDriverEntry>
ZIP_CHARSET
.public ZipDriverEntry newEntry(String name)
AbstractZipDriver
name
.newEntry
in interface ZipEntryFactory<ZipDriverEntry>
newEntry
in class AbstractZipDriver<ZipDriverEntry>
name
- the entry name.public ZipDriverEntry newEntry(String name, ZipEntry template)
AbstractZipDriver
name
and all
other properties copied from the given template.newEntry
in class AbstractZipDriver<ZipDriverEntry>
name
- the entry name.template
- the template entry.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.