org.ejtools.archive
Interface Archive

All Superinterfaces:
Entry
All Known Implementing Classes:
JarArchive

public interface Archive
extends Entry

Interface that defines an archive. Note that an archive can also be an archive entry.

Version:
$Revision: 1.2 $
Author:
Laurent Etiemble

Method Summary
 void addEntry(Entry entry)
          Adds an entry to this archive
 java.util.Enumeration getEntries()
          Returns an enumeration of entries contained in this archive
 Entry getEntry(java.lang.String uri)
          Returns the archive entry designated by this URI
 Entry getManifest()
          Returns the manifest entry of this archive
 Archive getParent()
          Return the parent archive of this archive
 boolean isNested()
          Returns whether or not this archive is nested in an other archive
 java.util.Iterator iterator()
          Return an Iterator of the entries contained in this archive
 void removeEntry(Entry entry)
          Removes an entry from this archive
 void removeEntry(java.lang.String uri)
          Removes an entry from this archive
 
Methods inherited from interface org.ejtools.archive.Entry
accept, accept, addTo, getContent, getURI, isArchive, setContent, setURI
 

Method Detail

getParent

public Archive getParent()
Return the parent archive of this archive

Returns:
The parent value

isNested

public boolean isNested()
Returns whether or not this archive is nested in an other archive

Returns:
True if it is nested

getEntries

public java.util.Enumeration getEntries()
Returns an enumeration of entries contained in this archive

Returns:
The entries enumeration

iterator

public java.util.Iterator iterator()
Return an Iterator of the entries contained in this archive

Returns:
The entries Iterator

addEntry

public void addEntry(Entry entry)
Adds an entry to this archive

Parameters:
entry - The archive entry to be added

removeEntry

public void removeEntry(java.lang.String uri)
Removes an entry from this archive

Parameters:
uri - The archive entry to be removed

removeEntry

public void removeEntry(Entry entry)
Removes an entry from this archive

Parameters:
entry - The archive entry to be removed

getEntry

public Entry getEntry(java.lang.String uri)
Returns the archive entry designated by this URI

Parameters:
uri - The URI of the entry
Returns:
The archiev entry if exists

getManifest

public Entry getManifest()
Returns the manifest entry of this archive

Returns:
The manifest entry


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.