org.entityfs.util.zip
Class ManualZipFileEntryInfo
java.lang.Object
org.entityfs.util.zip.ManualZipEntryInfo
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.