public class ZipEntryEntity extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected java.util.zip.ZipEntry |
entry
The Zip entry.
|
protected java.util.zip.ZipFile |
zipFile
The Zip file.
|
| Constructor and Description |
|---|
ZipEntryEntity(java.util.zip.ZipFile zipFile,
java.lang.String entryName,
MetadataService metadataService)
Constructor.
|
ZipEntryEntity(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry entry,
MetadataService metadataService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Indicates if the entity does exist.
|
java.util.List<Entity> |
getChildren()
Returns the list of contained entities if the current entity is a
directory, null otherwise.
|
java.lang.String |
getName()
Returns the name.
|
Entity |
getParent()
Returns the parent directory (if any).
|
Representation |
getRepresentation(MediaType defaultMediaType,
int timeToLive)
Returns a representation of this local entity.
|
boolean |
isDirectory()
Indicates if the entity is a directory.
|
boolean |
isNormal()
Indicates if the entity is a normal entity, especially if it is not a
directory.
|
getBaseName, getBaseName, getExtensions, getExtensions, getExtensions, getMetadataService, getVariant, updateMetadataprotected final java.util.zip.ZipEntry entry
protected final java.util.zip.ZipFile zipFile
public ZipEntryEntity(java.util.zip.ZipFile zipFile,
java.lang.String entryName,
MetadataService metadataService)
zipFile - The Zip file.entryName - The Zip entry name.metadataService - The metadata service to use.public ZipEntryEntity(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry entry,
MetadataService metadataService)
zipFile - The Zip file.entry - The Zip entry.metadataService - The metadata service to use.public boolean exists()
Entitypublic java.util.List<Entity> getChildren()
EntitygetChildren in class Entitypublic java.lang.String getName()
Entitypublic Entity getParent()
Entitypublic Representation getRepresentation(MediaType defaultMediaType, int timeToLive)
EntitygetRepresentation in class Entitypublic boolean isDirectory()
EntityisDirectory in class EntityCopyright © 2005-2014 Restlet.