Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.deployment

public abstract Class ArchiveBase

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.deployment.DirectoryArchive, org.eclipse.persistence.internal.jpa.deployment.DirectoryInsideJarURLArchive, org.eclipse.persistence.internal.jpa.deployment.JarFileArchive, org.eclipse.persistence.internal.jpa.deployment.JarInputStreamURLArchive, org.eclipse.persistence.internal.jpa.deployment.URLArchive
Imports
java.io.IOException, .InputStream, java.net.URL

Abstract base class of all Archives. Holds the base URL and the location of the persistence descriptor
Author
tware

Field Summary

Modifier and TypeField and Description
protected String
protected URL

Constructor Summary

AccessConstructor and Description
public
ArchiveBase()

Default Constructor.

public
ArchiveBase(URL rootUrl, String descriptorLocation)

Method Summary

Modifier and TypeMethod and Description
public String
public InputStream
public abstract InputStream
getEntry(String entryPath)

public URL
public void
setDescriptorLocation(String descriptorLocation)

public void
setRootURL(URL rootURL)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

descriptorLocationback to summary
protected String descriptorLocation
rootURLback to summary
protected URL rootURL

Constructor Detail

ArchiveBaseback to summary
public ArchiveBase()

Default Constructor. If you use this constructor, this class will assume you set the rootURL and descriptorLocation prior to using it

ArchiveBaseback to summary
public ArchiveBase(URL rootUrl, String descriptorLocation)

Method Detail

getDescriptorLocationback to summary
public String getDescriptorLocation()
getDescriptorStreamback to summary
public InputStream getDescriptorStream() throws IOException
getEntryback to summary
public abstract InputStream getEntry(String entryPath) throws IOException
getRootURLback to summary
public URL getRootURL()
setDescriptorLocationback to summary
public void setDescriptorLocation(String descriptorLocation)
setRootURLback to summary
public void setRootURL(URL rootURL)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override