@Immutable public class OdfDriver extends JarDriver
mimetype, if present
at all, is always written as the very first entry using the method
STORED rather than DEFLATED in the resulting archive file
in order to meet the requirements of the ODF Specification.
Other than this, ODF files are treated like regular JAR files.
In particular, this class does not check an ODF file for the
existence of the META-INF/manifest.xml entry or any other entry.
When using this driver to create or modify an ODF file, then in order to
achieve best performance, the mimetype entry should always get
written first in order to avoid temp file buffering of all other entries.
Subclasses must be thread-safe and should be immutable!
OdfOutputServiceJAR_CHARSET| Constructor and Description |
|---|
OdfDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected net.java.truecommons.cio.OutputService<JarDriverEntry> |
newOutput(FsModel model,
FsOutputSocketSink sink,
net.java.truecommons.cio.InputService<JarDriverEntry> input)
Creates a new input service for writing archive entries for the given
model to the target archive file referenced by sink. |
getCharset, newEntry, newEntrycheck, decorate, fileSystemUri, getKeyManagerMap, getLevel, getMethod, getOverheadSize, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newEntry, newInput, newZipInput, rdc, sink, zipCryptoParameterscheckEncodable, isArchiveDriver, newController, newEntry, newInput, newOutput, normalize, source, toStringprotected net.java.truecommons.cio.OutputService<JarDriverEntry> newOutput(FsModel model, FsOutputSocketSink sink, @CheckForNull @WillNotClose net.java.truecommons.cio.InputService<JarDriverEntry> input) throws IOException
FsArchiveDrivermodel to the target archive file referenced by sink.newOutput in class AbstractZipDriver<JarDriverEntry>model - the file system model.sink - the sink for writing the target archive file.input - the nullable InputService for the target archive
file.
If not null, then the target archive file is going to
get updated.
This parameter is guaranteed to be the product of this driver's
factory method
FsArchiveDriver.newInput(FsModel, BitField, FsController, FsNodeName).IOException - on any I/O error.FsArchiveDriver.newOutput(FsModel, BitField, FsController, FsNodeName, InputService)Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.