saker.zip Documentation TaskDoc JavaDoc Packages
public interface ZipResourceTransformationContext
Context providing write access to the created ZIP archive during resource transformation with resource transformers.

This interface should not be implemented by clients.

Methods
public void
appendDirectory(SakerPath entrypath, FileTime modificationtime)
Adds a directory entry to the created ZIP archive.
public void
Adds a directory entry to the created ZIP archive.
public OutputStream
appendFile(SakerPath entrypath, FileTime modificationtime)
Adds a file entry to the created ZIP archive.
public OutputStream
Adds a file entry to the created ZIP archive.
public abstract void appendDirectory(SakerPath entrypath, FileTime modificationtime) throws NullPointerException
Adds a directory entry to the created ZIP archive.

The added entry will be subject to further processing.

entrypathThe path to the added directory.
modificationtimeThe modification time for the entry, or null to use the default.
NullPointerExceptionIf the entry path is null.
public abstract void appendDirectory(ZipResourceEntry resourceentry) throws NullPointerException
Adds a directory entry to the created ZIP archive.

The added entry will be subject to further processing.

resourceentryThe ZIP resource entry describing the directory.
NullPointerExceptionIf argument is null.
saker.zip 0.8.5
public abstract OutputStream appendFile(SakerPath entrypath, FileTime modificationtime) throws NullPointerException
Adds a file entry to the created ZIP archive.

The contents of the file should be written to the returned output stream.

The stream must be closed by the caller. If it is not closed, the entry will not be written to the archive.

The added entry will be subject to further processing.

entrypathThe path to the added file.
modificationtimeThe modification time for the entry, or null to use the default.
The output stream to which the contents of the file should be written to. The stream must be closed by the caller.
NullPointerExceptionIf the entry path is null.
public abstract OutputStream appendFile(ZipResourceEntry resourceentry) throws NullPointerException
Adds a file entry to the created ZIP archive.

The contents of the file should be written to the returned output stream.

The stream must be closed by the caller. If it is not closed, the entry will not be written to the archive.

The added entry will be subject to further processing.

resourceentryThe ZIP resource entry describing the file.
The output stream to which the contents of the file should be written to. The stream must be closed by the caller.
NullPointerExceptionIf argument is null.
saker.zip 0.8.5