|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.util.zip.ZipEntryInfoImpl
public class ZipEntryInfoImpl
Standard implementation of ZipEntryInfo. It adds the entity's name
and last modification time to the created ZipEntry object. It can
also use an optional ZipEntryInfoProvider to provide extra
information to the ZipEntry objects that it creates.
The object's entity is locked for reading when collecting information about it.
Instances of this class are immutable.
| Constructor Summary | |
|---|---|
ZipEntryInfoImpl(EntityView ent,
AbsoluteLocation location,
ZipEntryInfoProvider zeip)
Constructor. |
|
| Method Summary | |
|---|---|
protected ZipEntry |
createZipEntry(String entryName)
Create the ZipEntry instance. |
protected EntityView |
getEntity()
|
protected ZipEntryInfoProvider |
getExtraInfoProvider()
Get the provider used to add extra information to created ZipEntry objects. |
protected AbsoluteLocation |
getLocation()
|
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 ZipEntryInfoImpl(EntityView ent,
AbsoluteLocation location,
ZipEntryInfoProvider zeip)
ent - The entity.location - The entity's location relative to the base directory for
the Zip archive.zeip - An provider of extra information. May be null.| Method Detail |
|---|
protected AbsoluteLocation getLocation()
protected ZipEntryInfoProvider getExtraInfoProvider()
ZipEntry objects.
null if not set.protected EntityView getEntity()
protected ZipEntry createZipEntry(String entryName)
ZipEntry instance. This can be overridden by
subclasses to use other ZipEntry implementations. The entity is
locked for reading when this method is called.
entryName - The name of the entity.
ZipEntry.public ZipEntry getZipEntry()
ZipEntryInfoZipEntry object for the entity. Entry names for
directories have to end with a single slash (see
ZipEntry.isDirectory()).
getZipEntry in interface ZipEntryInfoZipEntry object for the entity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||