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
URISyntaxException
IOException
public Iterator<String> getEntries()
getEntries
in interface org.eclipse.persistence.jpa.Archive
public InputStream getEntry(String entryPath) throws IOException
getEntry
in interface org.eclipse.persistence.jpa.Archive
IOException
public URL getEntryAsURL(String entryPath) throws IOException
getEntryAsURL
in interface org.eclipse.persistence.jpa.Archive
IOException
public URL getRootURL()
getRootURL
in interface org.eclipse.persistence.jpa.Archive
public InputStream getDescriptorStream() throws IOException
getDescriptorStream
in interface org.eclipse.persistence.jpa.Archive
IOException
public void close()
close
in interface org.eclipse.persistence.jpa.Archive
Copyright © 2016 Red Hat. All rights reserved.