|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.util.zip.ManualZipEntryInfo
public class ManualZipEntryInfo
This ZipEntryInfo
implementation uses manually set properties to
create ZipEntry
objects.
This implementation gives the created ZipEntry
a name and a
modification time. It can be subclassed add more information. (Override the
addProperties(ZipEntry)
method.)
Constructor Summary | |
---|---|
ManualZipEntryInfo(String name,
long time)
Constructor. |
Method Summary | |
---|---|
protected void |
addProperties(ZipEntry ze)
Subclasses can override this method to add more properties to the ZipEntry object. |
protected ZipEntry |
createZipEntry(String entryName)
Create the ZipEntry instance. |
ZipEntry |
getZipEntry()
Get the ZipEntry object for the entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManualZipEntryInfo(String name, long time)
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.Method Detail |
---|
protected ZipEntry createZipEntry(String entryName)
ZipEntry
instance. This can be overridden by
subclasses to use other ZipEntry
implementations.
entryName
- The name of the entity.
ZipEntry
.protected void addProperties(ZipEntry ze)
ZipEntry
object. This implementation does nothing.
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.
ze
- The Zip entry.public ZipEntry getZipEntry()
ZipEntryInfo
ZipEntry
object for the entity. Entry names for
directories have to end with a single slash (see
ZipEntry.isDirectory()
).
getZipEntry
in interface ZipEntryInfo
ZipEntry
object for the entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |