|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.engine.local.Entity
org.restlet.engine.local.ZipEntryEntity
public class ZipEntryEntity
Local entity based on an entry in a Zip archive.
| Field Summary | |
|---|---|
protected ZipEntry |
entry
The Zip entry. |
protected ZipFile |
zipFile
The Zip file. |
| Constructor Summary | |
|---|---|
ZipEntryEntity(ZipFile zipFile,
String entryName,
MetadataService metadataService)
Constructor. |
|
ZipEntryEntity(ZipFile zipFile,
ZipEntry entry,
MetadataService metadataService)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Indicates if the entity does exist. |
List<Entity> |
getChildren()
Returns the list of contained entities if the current entity is a directory, null otherwise. |
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. |
| Methods inherited from class org.restlet.engine.local.Entity |
|---|
getBaseName, getBaseName, getExtensions, getExtensions, getExtensions, getMetadataService, getVariant, updateMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ZipFile zipFile
protected final ZipEntry entry
| Constructor Detail |
|---|
public ZipEntryEntity(ZipFile zipFile,
String entryName,
MetadataService metadataService)
zipFile - The Zip file.entryName - The Zip entry name.metadataService - The metadata service to use.
public ZipEntryEntity(ZipFile zipFile,
ZipEntry entry,
MetadataService metadataService)
zipFile - The Zip file.entry - The Zip entry.metadataService - The metadata service to use.| Method Detail |
|---|
public boolean exists()
Entity
exists in class Entitypublic List<Entity> getChildren()
Entity
getChildren in class Entitypublic String getName()
Entity
getName in class Entitypublic Entity getParent()
Entity
getParent in class Entity
public Representation getRepresentation(MediaType defaultMediaType,
int timeToLive)
Entity
getRepresentation in class Entitypublic boolean isDirectory()
Entity
isDirectory in class Entitypublic boolean isNormal()
Entity
isNormal in class EntityFile.isFile(),
File.isDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||