FileDocCategorySizeDatePackage
Archive.javaAPI DocGlassfish v2 API3618Thu Jul 26 10:51:00 BST 2007oracle.toplink.essentials.ejb.cmp3.persistence

Archive

public interface Archive
Provides an abstraction to deal with various kinds of URLs that can be returned by {@link javax.persistence.spi.PersistenceUnitInfo#getPersistenceUnitRootUrl()}
see
ArchiveFactoryImpl
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
Constructors Summary
Methods Summary
public java.util.IteratorgetEntries()
Returns an {@link java.util.Iterator} of the file entries. Each String represents a file name relative to the root of the module.

public java.io.InputStreamgetEntry(java.lang.String entryPath)
Returns the InputStream for the given entry name. Returns null if no such entry exists. The entry name must be relative to the root of the module.

param
entryPath the file name relative to the root of the module.
return
the InputStream for the given entry name or null if not found.

public java.net.URLgetEntryAsURL(java.lang.String entryPath)
Returns the URL for the given entry name. Returns null if no such entry exists. The entry name must be relative to the root of the module.

param
entryPath the file name relative to the root of the module.
return
the URL for the given entry name or null if not found.

public java.net.URLgetRootURL()

return
the URL that this archive represents.