@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 java.nio.charset.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 |
|---|---|
java.nio.charset.Charset |
getCharset() |
ZipDriverEntry |
newEntry(java.lang.String name)
Returns a new ZIP driver entry with the given
name. |
ZipDriverEntry |
newEntry(java.lang.String name,
net.java.truevfs.comp.zip.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, zipCryptoParameterspublic static final java.nio.charset.Charset ZIP_CHARSET
"IBM437".public java.nio.charset.Charset getCharset()
getCharset in interface net.java.truevfs.comp.zip.ZipCharsetParametersgetCharset in class net.java.truevfs.kernel.spec.FsArchiveDriver<ZipDriverEntry>ZIP_CHARSET.public ZipDriverEntry newEntry(java.lang.String name)
AbstractZipDrivername.newEntry in interface net.java.truevfs.comp.zip.ZipEntryFactory<ZipDriverEntry>newEntry in class AbstractZipDriver<ZipDriverEntry>name - the entry name.public ZipDriverEntry newEntry(java.lang.String name, net.java.truevfs.comp.zip.ZipEntry template)
AbstractZipDrivername and all
other properties copied from the given template.newEntry in class AbstractZipDriver<ZipDriverEntry>name - the entry name.template - the template entry.