Module org.eclipse.persistence.jpa
Class ArchiveBase
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.deployment.ArchiveBase
-
- Direct Known Subclasses:
DirectoryArchive,DirectoryInsideJarURLArchive,JarFileArchive,JarInputStreamURLArchive,URLArchive
public abstract class ArchiveBase extends Object
Abstract base class of all Archives. Holds the base URL and the location of the persistence descriptor- Author:
- tware
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptorLocationprotected URLrootURL
-
Constructor Summary
Constructors Constructor Description ArchiveBase()Default Constructor.ArchiveBase(URL rootUrl, String descriptorLocation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDescriptorLocation()InputStreamgetDescriptorStream()abstract InputStreamgetEntry(String entryPath)URLgetRootURL()voidsetDescriptorLocation(String descriptorLocation)voidsetRootURL(URL rootURL)StringtoString()
-
-
-
Method Detail
-
getDescriptorStream
public InputStream getDescriptorStream() throws IOException
- Throws:
IOException
-
getEntry
public abstract InputStream getEntry(String entryPath) throws IOException
- Throws:
IOException
-
getRootURL
public URL getRootURL()
-
setRootURL
public void setRootURL(URL rootURL)
-
getDescriptorLocation
public String getDescriptorLocation()
-
setDescriptorLocation
public void setDescriptorLocation(String descriptorLocation)
-
-