org.entityfs.util.zip
Class ManualZipFileEntryInfo

java.lang.Object
  extended by org.entityfs.util.zip.ManualZipEntryInfo
      extended by org.entityfs.util.zip.ManualZipFileEntryInfo
All Implemented Interfaces:
ZipEntryInfo, ZipFileEntryInfo
Direct Known Subclasses:
ManualJarFileEntryInfo

public class ManualZipFileEntryInfo
extends ManualZipEntryInfo
implements ZipFileEntryInfo

This is an implementation of ZipFileEntryInfo that uses manually entered properties.

Just like ManualZipEntryInfo, this class can be extended to be able to add more properties to the created ZipEntry object. Java's ZipOutputStream does not give access to all properties though. Use the Zip builder from the At4J project for more control over the Zip file contents.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ManualZipFileEntryInfo(String name, long time, ReadableFile f)
          Constructor.
 
Method Summary
 ReadableFile getFile()
          Get a file to read file data from.
 
Methods inherited from class org.entityfs.util.zip.ManualZipEntryInfo
addProperties, createZipEntry, getZipEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.entityfs.util.zip.ZipEntryInfo
getZipEntry
 

Constructor Detail

ManualZipFileEntryInfo

public ManualZipFileEntryInfo(String name,
                              long time,
                              ReadableFile f)
Constructor.

Parameters:
name - The name of the entry as it appears in the Zip file, i.e. this name represents the absolute location in the Zip file, complete with slashes (but without a leading slash).
time - The modification time of the entry.
f - The data container.
Method Detail

getFile

public ReadableFile getFile()
Description copied from interface: ZipFileEntryInfo
Get a file to read file data from.

Specified by:
getFile in interface ZipFileEntryInfo
Returns:
A readable file.