FileDocCategorySizeDatePackage
AbstractArchive.javaAPI DocGlassfish v2 API4748Fri May 04 22:31:36 BST 2007com.sun.enterprise.deployment.deploy.shared

AbstractArchive

public abstract class AbstractArchive extends Object implements com.sun.enterprise.deployment.deploy.shared.WritableArchive
This abstract class contains all common implementation of the Archive/WritableArchive interfaces for all types of archives.
author
Jerome Dochez

Fields Summary
Constructors Summary
Methods Summary
public abstract voidcloseEntry(com.sun.enterprise.deployment.deploy.shared.AbstractArchive sub)
close a sub archive

public abstract booleandelete()
deletes the archive

public java.util.Enumerationentries(java.lang.String prefix)
Returns an enumeration of the module file entries with the specified prefix. All elements in the enumeration are of type String. Each String represents a file name relative to the root of the module.

param
prefix the prefix of entries to be included
return
an enumeration of the archive file entries.

        Enumeration allEntries = entries();
        Vector entries = new Vector();
        while (allEntries.hasMoreElements()) {
            String name = (String) allEntries.nextElement();
            if (name != null && name.startsWith(prefix)) {
                entries.add(name);
            }
        }
        return entries.elements();
    
public abstract java.util.Enumerationentries(java.util.Enumeration embeddedArchives)

return
an @see java.util.Enumeration of entries in this abstract archive, providing the list of embedded archive to not count their entries as part of this archive

public abstract booleanexists()

return
true if this archive exists

public abstract longgetArchiveSize()

return
the size of the archive

public abstract java.lang.StringgetArchiveUri()

return
the archive uri

public abstract com.sun.enterprise.deployment.deploy.shared.AbstractArchivegetEmbeddedArchive(java.lang.String name)

public com.sun.enterprise.deployment.deploy.shared.ArchivegetSubArchive(java.lang.String name)

return
the sub archive

        return getEmbeddedArchive(name);
    
public abstract booleanrenameTo(java.lang.String name)
rename the archive

param
name the archive name

public booleansupportsElementsOverwriting()

return
true if this archive abstraction supports overwriting of elements

        return false;