Interface Archive.Entry
-
- Enclosing interface:
- Archive
public static interface Archive.Entry
Entry of an archive
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Archive.Entry
getChild(java.lang.String name)
Returns the child entry with the given name.java.util.Collection<? extends Archive.Entry>
getChildren()
Returns a collection of child entries.java.lang.String
getName()
Returns the (file) name of the entryboolean
isDirectory()
Returnstrue
if the entry designates a directory.
-
-
-
Method Detail
-
getName
@Nonnull java.lang.String getName()
Returns the (file) name of the entry- Returns:
- the name
-
isDirectory
boolean isDirectory()
Returnstrue
if the entry designates a directory.- Returns:
true
if the entry designates a directory.
-
getChildren
@Nonnull java.util.Collection<? extends Archive.Entry> getChildren()
Returns a collection of child entries.- Returns:
- a collection of child entries.
-
getChild
@CheckForNull Archive.Entry getChild(@Nonnull java.lang.String name)
Returns the child entry with the given name.- Parameters:
name
- name of the child entry- Returns:
- the entry or
null
if does not exist.
-
-