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 java.lang.ObjectAbstract 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 java.lang.StringdescriptorLocationprotected java.net.URLrootURL
-
Constructor Summary
Constructors Constructor Description ArchiveBase()Default Constructor.ArchiveBase(java.net.URL rootUrl, java.lang.String descriptorLocation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescriptorLocation()java.io.InputStreamgetDescriptorStream()abstract java.io.InputStreamgetEntry(java.lang.String entryPath)java.net.URLgetRootURL()voidsetDescriptorLocation(java.lang.String descriptorLocation)voidsetRootURL(java.net.URL rootURL)java.lang.StringtoString()
-
-
-
Method Detail
-
getDescriptorStream
public java.io.InputStream getDescriptorStream() throws java.io.IOException- Throws:
java.io.IOException
-
getEntry
public abstract java.io.InputStream getEntry(java.lang.String entryPath) throws java.io.IOException- Throws:
java.io.IOException
-
getRootURL
public java.net.URL getRootURL()
-
setRootURL
public void setRootURL(java.net.URL rootURL)
-
getDescriptorLocation
public java.lang.String getDescriptorLocation()
-
setDescriptorLocation
public void setDescriptorLocation(java.lang.String descriptorLocation)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-