public class VFSArchive extends Object implements org.eclipse.persistence.jpa.Archive
| Modifier and Type | Field and Description |
|---|---|
protected String |
descriptorLocation |
protected Map<String,org.jboss.vfs.VirtualFile> |
files |
protected org.jboss.vfs.VirtualFile |
root |
protected URL |
rootUrl |
| Constructor and Description |
|---|
VFSArchive(URL rootUrl,
String descriptorLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getDescriptorStream() |
Iterator<String> |
getEntries() |
InputStream |
getEntry(String entryPath) |
URL |
getEntryAsURL(String entryPath) |
URL |
getRootURL() |
protected URL rootUrl
protected String descriptorLocation
protected org.jboss.vfs.VirtualFile root
public VFSArchive(URL rootUrl, String descriptorLocation) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic Iterator<String> getEntries()
getEntries in interface org.eclipse.persistence.jpa.Archivepublic InputStream getEntry(String entryPath) throws IOException
getEntry in interface org.eclipse.persistence.jpa.ArchiveIOExceptionpublic URL getEntryAsURL(String entryPath) throws IOException
getEntryAsURL in interface org.eclipse.persistence.jpa.ArchiveIOExceptionpublic URL getRootURL()
getRootURL in interface org.eclipse.persistence.jpa.Archivepublic InputStream getDescriptorStream() throws IOException
getDescriptorStream in interface org.eclipse.persistence.jpa.ArchiveIOExceptionpublic void close()
close in interface org.eclipse.persistence.jpa.ArchiveCopyright © 2015 Red Hat. All rights reserved.